Type alias KeyToDeclaration<K>

KeyToDeclaration<K>: TypeDocOptionMap[K] extends boolean
    ? BooleanDeclarationOption
    : TypeDocOptionMap[K] extends string
        ? StringDeclarationOption
        : TypeDocOptionMap[K] extends number
            ? NumberDeclarationOption
            : TypeDocOptionMap[K] extends string[]
                ? ArrayDeclarationOption
                : unknown extends TypeDocOptionMap[K]
                    ? MixedDeclarationOption | ObjectDeclarationOption
                    : TypeDocOptionMap[K] extends ManuallyValidatedOption<unknown>
                        ? MixedDeclarationOption & {
                            validate(value): void;
                        } | ObjectDeclarationOption & {
                            validate(value): void;
                        }
                        : TypeDocOptionMap[K] extends Record<string, boolean>
                            ? FlagsDeclarationOption<TypeDocOptionMap[K]>
                            : TypeDocOptionMap[K] extends Record<string | number, infer U>
                                ? MapDeclarationOption<U>
                                : never

Converts a given TypeDoc option key to the type of the declaration expected.

Type Parameters

Generated using TypeDoc