8cbc576954
* fix as suggestion. * Update moduleSpecifiers.ts * compare symbol rather than string * fix typo. * fix * fix lint. * better name and more clear code * fix comment. Co-authored-by: Orta Therox <git@orta.io>
95 lines
1.7 KiB
Plaintext
95 lines
1.7 KiB
Plaintext
=== /src/node_modules/@types/node/index.d.ts ===
|
|
/// <reference path="events.d.ts" />
|
|
No type information for this code.=== /src/node_modules/@types/node/events.d.ts ===
|
|
declare module "events" {
|
|
>"events" : typeof import("events")
|
|
|
|
namespace EventEmitter {
|
|
>EventEmitter : typeof EventEmitter
|
|
|
|
class EventEmitter {
|
|
>EventEmitter : EventEmitter
|
|
|
|
constructor();
|
|
}
|
|
}
|
|
export = EventEmitter;
|
|
>EventEmitter : typeof EventEmitter
|
|
}
|
|
declare module "nestNamespaceModule" {
|
|
>"nestNamespaceModule" : typeof import("nestNamespaceModule")
|
|
|
|
namespace a1.a2 {
|
|
>a1 : typeof a1
|
|
>a2 : typeof a2
|
|
|
|
class d { }
|
|
>d : d
|
|
}
|
|
|
|
namespace a1.a2.n3 {
|
|
>a1 : typeof a1
|
|
>a2 : typeof a2
|
|
>n3 : typeof n3
|
|
|
|
class c { }
|
|
>c : c
|
|
}
|
|
export = a1.a2;
|
|
>a1.a2 : typeof a1.a2
|
|
>a1 : typeof a1
|
|
>a2 : typeof a1.a2
|
|
}
|
|
declare module "renameModule" {
|
|
>"renameModule" : typeof import("renameModule")
|
|
|
|
namespace a.b {
|
|
>a : typeof a
|
|
>b : typeof b
|
|
|
|
class c { }
|
|
>c : c
|
|
}
|
|
import d = a.b;
|
|
>d : typeof d
|
|
>a : typeof a
|
|
>b : typeof d
|
|
|
|
export = d;
|
|
>d : typeof d
|
|
}
|
|
|
|
=== /src/b.js ===
|
|
import { EventEmitter } from 'events';
|
|
>EventEmitter : typeof EventEmitter
|
|
|
|
import { n3, d } from 'nestNamespaceModule';
|
|
>n3 : typeof n3
|
|
>d : typeof d
|
|
|
|
import { c } from 'renameModule';
|
|
>c : typeof c
|
|
|
|
export class Foo extends EventEmitter {
|
|
>Foo : Foo
|
|
>EventEmitter : EventEmitter
|
|
}
|
|
|
|
export class Foo2 extends n3.c {
|
|
>Foo2 : Foo2
|
|
>n3.c : n3.c
|
|
>n3 : typeof n3
|
|
>c : typeof n3.c
|
|
}
|
|
|
|
export class Foo3 extends d {
|
|
>Foo3 : Foo3
|
|
>d : d
|
|
}
|
|
|
|
export class Foo4 extends c {
|
|
>Foo4 : Foo4
|
|
>c : c
|
|
|
|
}
|