UNPKG

prompt-compose

Version:

A JS library for building and managing GPT prompts documents.

30 lines (25 loc) 506 B
const CONSTANT = { CONFIG: { dividerType: " ", dividerRepeat: 5, dividerBefore: "\n", dividerAfter: "\n", tabType:" ", tabRepeat: 4, instructionSpacing:"\n" } }; type CONFIG_TYPE = typeof CONSTANT.CONFIG; function getConfig() { return CONSTANT.CONFIG; } function setConfig(newConfig: Partial<CONFIG_TYPE>) { CONSTANT.CONFIG ={ ...CONSTANT.CONFIG, ...newConfig }; } export { getConfig, setConfig };