Type Alias KeyToDeclaration<K>

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

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

Type Parameters