mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-26 10:42:51 +00:00
6 lines
234 B
TypeScript
6 lines
234 B
TypeScript
import preval = require('preval.macro');
|
|
|
|
const eg1: string = preval`module.exports = 'hello world`;
|
|
const eg2: number = preval`module.exports = 42`;
|
|
const eg3: { [key: string]: string } = preval`module.exports = { hello: 'world' }`;
|