bigbuffet-rw/src/utils/types.ts

7 lines
206 B
TypeScript
Raw Normal View History

2023-06-13 20:12:42 -07:00
/**
* 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 };