mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
6 lines
248 B
TypeScript
6 lines
248 B
TypeScript
import codegen = require('codegen.macro');
|
|
|
|
const eg1: string = codegen`module.exports = "'hello world'"`;
|
|
const eg2: number = codegen`module.exports = "42"`;
|
|
const eg3: { [key: string]: string } = codegen`module.exports = "({ hello: 'world' })"`;
|