mono/packages/discourse/src/index.ts
2025-12-30 20:36:17 +01:00

8 lines
424 B
TypeScript

export * from './constants.js'
export * from './types.js'
export * from './lib/index.js'
export { Logger } from 'tslog'
import { substitute as _substitute, substituteAlt as _substituteAlt } from "@polymech/core/strings"
import { IObjectLiteral } from "@polymech/core"
export const substitute = (alt: boolean, template: string, vars: IObjectLiteral = {}) => alt ? _substituteAlt(template, vars) : _substitute(template, vars)