UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

20 lines (19 loc) 1.09 kB
import { Dictionary } from "@intlayer/types/dictionary"; import { PLUGIN_NODE_TYPES } from "@intlayer/types/nodeType"; //#region src/utils/getUsedNodeTypes.d.ts type PluginNodeType = (typeof PLUGIN_NODE_TYPES)[number]; /** * Returns the set of NodeType strings actually used across the given * built dictionaries. * * @example * const used = getUsedNodeTypes(getDictionaries(config)); * // Set { 'translation', 'enumeration' } */ declare const getUsedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[]; declare const getUnusedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[]; declare const getUsedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>; declare const getUnusedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>; //#endregion export { PluginNodeType, getUnusedNodeTypes, getUnusedNodeTypesAsync, getUsedNodeTypes, getUsedNodeTypesAsync }; //# sourceMappingURL=getUsedNodeTypes.d.ts.map