bigbuffet-rw/src/utils/types.ts
2023-09-18 16:08:54 -05:00

7 lines
No EOL
206 B
TypeScript

/**
* Resolve a type into a flat POJO interface if it's been wrapped by generics.
* https://gleasonator.com/@alex/posts/AWfK4hyppMDCqrT2y8
*/
type Resolve<T> = Pick<T, keyof T>;
export type { Resolve };