MyCrypto/common/utils/types.ts

5 lines
182 B
TypeScript

// Maps interface keys to optional
export type Optional<T> = { [P in keyof T]?: T[P] };
// Maps interface keys to nullable
export type Nullable<T> = { [P in keyof T]: T[P] | null };