UNPKG

roleplayer

Version:

A library for building table top role playing game worlds, and managing campaigns in those worlds

9 lines (7 loc) 198 B
type NonFunctionKeyNames<T> = Exclude< { [key in keyof T]: T[key] extends Function ? never : key; }[keyof T], undefined >; export type OmitFunctions<T> = Pick<T, NonFunctionKeyNames<T>>;