mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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' }`;
|