* Reimplement #20320 less elegantly but handle odd check orders better * Consolidate 2 of 3 conditions
21 lines
510 B
TypeScript
21 lines
510 B
TypeScript
// @declaration: true
|
|
// @filename: internal.ts
|
|
namespace My.Internal {
|
|
export function getThing(): void {}
|
|
export const enum WhichThing {
|
|
A, B, C
|
|
}
|
|
}
|
|
|
|
// @filename: usage.ts
|
|
/// <reference path="./internal.ts" />
|
|
namespace SomeOther.Thing {
|
|
import Internal = My.Internal;
|
|
export class Foo {
|
|
private _which: Internal.WhichThing;
|
|
constructor() {
|
|
Internal.getThing();
|
|
Internal.WhichThing.A ? "foo" : "bar";
|
|
}
|
|
}
|
|
} |