This commit is contained in:
@@ -1,8 +1,4 @@
|
|||||||
import type { AbstractConstructor } from "type-fest"
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the static members of a class.
|
* Obtain the static members type of a constructor function type
|
||||||
* @template C - A class.
|
|
||||||
*/
|
*/
|
||||||
export type StaticType<C extends AbstractConstructor<any>> = Omit<C, "prototype">
|
export type StaticType<T extends abstract new (...args: any) => any> = Omit<T, "prototype">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { Struct } from "@effect/schema/Schema"
|
import { Schema as S } from "@effect/schema"
|
||||||
|
|
||||||
|
|
||||||
export type HasFields<Fields extends Struct.Fields> = (
|
export type HasFields<Fields extends S.Struct.Fields> = (
|
||||||
| { readonly fields: Fields }
|
| { readonly fields: Fields }
|
||||||
| { readonly from: HasFields<Fields> }
|
| { readonly from: HasFields<Fields> }
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user