mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
//// [tests/cases/conformance/importAttributes/importAttributes2.ts] ////
|
|
|
|
//// [0.ts]
|
|
export const a = 1;
|
|
export const b = 2;
|
|
|
|
//// [1.ts]
|
|
export {} from './0' with { type: "json" }
|
|
export { a, b } from './0' with { type: "json" }
|
|
export * from './0' with { type: "json" }
|
|
export * as ns from './0' with { type: "json" }
|
|
|
|
//// [2.ts]
|
|
export { a, b } from './0' with {}
|
|
export { a as c, b as d } from './0' with { a: "a", b: "b", c: "c" }
|
|
|
|
|
|
//// [0.js]
|
|
export const a = 1;
|
|
export const b = 2;
|
|
//// [1.js]
|
|
export { a, b } from './0' with { type: "json" };
|
|
export * from './0' with { type: "json" };
|
|
export * as ns from './0' with { type: "json" };
|
|
//// [2.js]
|
|
export { a, b } from './0' with {};
|
|
export { a as c, b as d } from './0' with { a: "a", b: "b", c: "c" };
|
|
|
|
|
|
//// [0.d.ts]
|
|
export declare const a = 1;
|
|
export declare const b = 2;
|
|
//// [1.d.ts]
|
|
export {} from './0';
|
|
export { a, b } from './0';
|
|
export * from './0';
|
|
export * as ns from './0';
|
|
//// [2.d.ts]
|
|
export { a, b } from './0';
|
|
export { a as c, b as d } from './0';
|