UNPKG

@playcanvas/react

Version:

A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.

15 lines (10 loc) 422 B
// Utility type to exclude keys starting with `_` and functions export type PublicMutableNoFunctions<T> = { -readonly [K in keyof T as // Exclude keys starting with `_` K extends `_${string}` ? never : // Exclude keys whose type is a function T[K] extends Function ? never : K ]: T[K]; }; export type OptionalPublicMutableNoFunctions<T> = Partial<PublicMutableNoFunctions<T>>;