Flarum (v2.0.0-beta.2)
    Preparing search index...

    Type Alias KeysOfType<Type, Match>

    KeysOfType: { [Key in keyof Type]-?: Type[Key] extends Match ? Key : never }

    Type that returns an array of all keys of a provided object that are of of the provided type, or a subtype of the type.

    Type Parameters

    • Type extends object
    • Match