UNPKG

plugify-plugins-types-generator

Version:

tool to generate d.ts for plugify plugins by pplugin file (ESM)

10 lines (9 loc) 265 B
export const plugifyNamespaceGenerator = (body: string[], space = NameSpaces.Callbacks) => { return ` namespace ${space} { ${body.join("\n")} }`; } // ! temp-fix to prevent export callbacks as value export enum NameSpaces { Callbacks = "Callbacks" }