mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
709 B
TypeScript
31 lines
709 B
TypeScript
// @runExternalCode: true
|
|
|
|
// @Filename: /tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"declaration": true,
|
|
"declarationMap": true
|
|
},
|
|
"contentMappers": [
|
|
{ "package": "mapper", "extensions": [".y.z"] }
|
|
]
|
|
}
|
|
|
|
// @Filename: /node_modules/mapper/package.json
|
|
{
|
|
"name": "mapper",
|
|
"version": "1.0.0",
|
|
"typescript": { "contentMapper": { "exec": ["compiler-test-mapper"] } }
|
|
}
|
|
|
|
// @Filename: /component.y.z
|
|
export interface ComponentProps {
|
|
label: string;
|
|
}
|
|
export declare const component: ComponentProps;
|
|
|
|
// @Filename: /main.ts
|
|
export { component } from "./component.y.z"; |