Trilium Frontend API
    Preparing search index...

    Type Alias GetSubConfig<T, K>

    GetSubConfig: K extends keyof T
        ? T[K]
        : K extends `${infer K1}.${infer K2}`
            ? K1 extends keyof T ? GetSubConfig<OnlyObject<T[K1]>, K2> : unknown
            : unknown

    An utility type extracting configuration value from the given name.

    Type Parameters

    • T

      The type of a configuration dictionary.

    • K

      The literal type of configuration name (dot-separated path).