Files
codeql/javascript/ql/test/library-tests/EndpointNaming/pack9/index.ts
2024-02-19 13:59:49 +01:00

10 lines
322 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
} // $ name=(pack9).expose