kit
    Preparing search index...

    Type Alias PickStartsWith<T, S>

    PickStartsWith: {
        [K in keyof T as K extends `${S}${string}` ? K : never]: T[K]
    }

    Pick the keys of an object T that starts with S. It produces a mapped type with a subset of T whose keys start with S.

    Type Parameters

    • T extends object
    • S extends string