artalk
    Preparing search index...

    Interface ConfigManager

    interface ConfigManager {
        get: () => Config;
        update: (conf: ConfigPartial) => void;
        watchConf: <T extends (keyof Config)[]>(
            keys: T,
            effect: (val: Pick<Config, T[number]>) => void,
        ) => void;
    }
    Index

    Properties

    Properties

    get: () => Config
    update: (conf: ConfigPartial) => void
    watchConf: <T extends (keyof Config)[]>(
        keys: T,
        effect: (val: Pick<Config, T[number]>) => void,
    ) => void

    Type Declaration

      • <T extends (keyof Config)[]>(
            keys: T,
            effect: (val: Pick<Config, T[number]>) => void,
        ): void
      • Watch the config

        Type Parameters

        Parameters

        • keys: T
        • effect: (val: Pick<Config, T[number]>) => void

        Returns void