mina-attestations
Version:
Private Attestations on Mina
13 lines (8 loc) • 353 B
text/typescript
export type { Tuple, ExcludeFromRecord, Constructor, Json };
type Tuple<T = any> = [T, ...T[]] | [];
type ExcludeFromRecord<T, E> = {
[P in keyof T as T[P] extends E ? never : P]: T[P];
};
type Constructor<T = any> = new (...args: any) => T;
type Literal = string | number | boolean | null;
type Json = Literal | { [key: string]: Json } | Json[];