Extracts only non-function properties from an object type.
Essential for serialization, data persistence, and state management where only data properties should be included, not methods.
interface User { id: string; name: string; save(): void; delete(): void; }type UserData = Pick<User, NonFunctionProps<User>>; // { id: string; name: string; } Copy
interface User { id: string; name: string; save(): void; delete(): void; }type UserData = Pick<User, NonFunctionProps<User>>; // { id: string; name: string; }
Extracts only non-function properties from an object type.
Essential for serialization, data persistence, and state management where only data properties should be included, not methods.