Documentation
    Preparing search index...

    Type Alias SpecialFields<Instance, Target>

    SpecialFields: { [P in keyof Instance]: Instance[P] extends Target ? P : never }[keyof Instance & string]

    Extracts property keys whose value type extends the target type.

    SpecialFields<Instance, Target> returns a union of property names from Instance where the property value extends Target.

    Type Parameters

    • Instance extends object

      Source object type

    • Target

      Target value type to match

    Jeongho Nam - https://github.com/samchon