mobx-bonsai
Version:
A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding
23 lines (22 loc) • 604 B
TypeScript
import { NodeKeyGenerator } from "./node/utils/nodeKeyGenerator";
/**
* Global config object.
*/
export interface GlobalConfig {
/**
* Node key generator function.
*/
keyGenerator: NodeKeyGenerator;
}
/**
* Partially sets the current global config.
*
* @param config Partial object with the new configurations. Options not included in the object won't be changed.
*/
export declare function setGlobalConfig(config: Partial<GlobalConfig>): void;
/**
* Returns the current global config object.
*
* @returns
*/
export declare function getGlobalConfig(): Readonly<GlobalConfig>;