-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Describe the bug
The $$ts! example that autoloads (randomly) on https://googlefeud.github.io/ts-macros/ does not work, the output is empty
Code to reproduce
// Interactive playground!
// Write your code here and see the transpiled result.
// All types and functions from the library are already imported!
type ClassInfo = { name: string, value: string };
function $makeClasses(...info: Array<ClassInfo>) {
+[[info], (classInfo: ClassInfo) => {
$$ts!(`
class ${classInfo.name} {
constructor() {
this.value = ${classInfo.value}
}
}
`);
}];
}
$makeClasses!({name: "A", value: "123"}, {name: "B", value: "345"});Expected behavior
The example should work
Additional context
Many of the examples in index.ts also do not work in the playground.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels