MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / emitParams

Function emitParams

tools/build-materials-from-json.ts:103–109  ·  view source on GitHub ↗
(params: number[] | undefined)

Source from the content-addressed store, hash-verified

101}
102
103function emitParams(params: number[] | undefined): string {
104 if (!params || params.length === 0) return '';
105 // Literal-init array — Perry-safe (`.length` reads correctly because the
106 // array isn't built via .push).
107 const formatted = params.map((v) => Number.isInteger(v) ? `${v}.0` : `${v}`).join(', ');
108 return `,\n params: [${formatted}]`;
109}
110
111function main() {
112 const argv = process.argv.slice(2);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected