/** Picks only the keys of T that start with the given prefix. */ export type PickStartsWith = { [K in keyof T as K extends `${Prefix}${string}` ? K : never]: T[K]; }; /** Recursively picks only the keys that start with the given prefix, including in nested objects and arrays. */ export type DeepPickStartsWith = T extends (infer U)[] ? DeepPickStartsWith[] : T extends object ? { [K in keyof T as K extends string ? K extends `${Prefix}${string}` ? K : never : K]: DeepPickStartsWith; } : T; //# sourceMappingURL=PickStartsWith.d.ts.map