StaticType fix
All checks were successful
Lint / lint (push) Successful in 10s

This commit is contained in:
Julien Valverdé
2024-06-18 02:43:52 +02:00
parent a2d7afa6cd
commit 6de0fd0c53
2 changed files with 4 additions and 8 deletions

View File

@@ -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">

View File

@@ -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> }
) )