AIDC Toolkit / Core / PropertyKeys
Type Alias: PropertyKeys<T, P> ​
PropertyKeys<
T,P> ={ [K in keyof T]: K extends string ? T[K] extends P ? K : never : never }[keyofT]
Defined in: type.ts:128
Type to restrict property keys to those that are strings and that support a specified type.
Type Parameters ​
T ​
T
Object type.
P ​
P
Object property type.