Files
scriptc/tests/corpus/6472-namespace-destructuring/shape.ts
T
2026-10-20 12:55:10 -05:00

8 lines
250 B
TypeScript

// A module whose exports have the same names and types as some of
// lib.ts's, so `typeof import("./shape.ts")` accepts lib.ts's namespace.
export const label: string = "shape";
export function add(a: number, b: number): number {
return a * b;
}