Consider the TypeScript module below:
namespace AnotherVeryLongNamespace {
export type SomeTypeUsedLater = (a: string, b: number) => Promise<Array<boolean>>;
export type SomeOtherTypeUsedLater = { c: SomeTypeUsedLater, d: number };
}
class AnotherVeryLongClassName {
private someThing: AnotherVeryLongNamespace.SomeTypeUsedLater;
private someThingElse: AnotherVeryLongNamespace.SomeOtherTypeUsedLater;
constructor(thing: AnotherVeryLongNamespace.SomeTypeUsedLater,
otherThing: AnotherVeryLongNamespace.SomeOtherTypeUsedLater) {
this.someThing = thing;
this.someThingElse = otherThing;
}
/* ... */
}
export = AnotherVeryLongClassName;
Is there a method to avoid prefixing SomeTypeUsedLater
with AnotherVeryLongNamespace.
in the class declaration?