Files
codeql/javascript/ql/test/library-tests/EndpointNaming/pack9/index.ts
2024-01-30 16:36:51 +01:00

10 lines
324 B
TypeScript

// Only the type is exposed. For the time being we do not consider type-only declarations or .d.ts files
// when naming classes.
export type { Foo } from "./foo";
import * as foo from "./foo";
export function expose() {
return new foo.Foo(); // expose an instance of Foo but not the class
} // $ method=(pack9).expose