This commit is contained in:
2026-06-23 01:13:03 +02:00
parent a3c85a7983
commit 3dc22e3f62
13 changed files with 1210 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { HKT } from "./base/hkt";
export interface Identity extends HKT {
new: (t: HKT.T<this>) => typeof t;
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
export const never = undefined as never;
export type Constraint<T, U extends T> = U;
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export type Empty = Constraint<Record<PropertyKey, unknown>, {}>;