mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
560 B
TypeScript
25 lines
560 B
TypeScript
// @runExternalCode: true
|
|
|
|
// @Filename: /tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"strict": true
|
|
},
|
|
"contentMappers": [
|
|
{ "package": "mapper", "extensions": [".astro"] }
|
|
]
|
|
}
|
|
|
|
// @Filename: /node_modules/mapper/package.json
|
|
{
|
|
"name": "mapper",
|
|
"version": "1.0.0",
|
|
"typescript": { "contentMapper": { "exec": ["supplemental-diagnostics-mapper"] } }
|
|
}
|
|
|
|
// @Filename: /component.astro
|
|
const mappedError: number = "not a number";
|