@atlaspack/transformer-typescript-types 2.14.21-typescript-5b4d3ad41.0 → 2.14.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/TSModuleGraph.js +0 -13
- package/lib/TSTypesTransformer.js +4 -6
- package/lib/collect.js +4 -28
- package/lib/shake.js +6 -24
- package/lib/utils.js +0 -4
- package/lib/wrappers.js +0 -1
- package/package.json +9 -14
- package/src/{TSModule.ts → TSModule.js} +6 -13
- package/src/{TSModuleGraph.ts → TSModuleGraph.js} +9 -48
- package/src/{TSTypesTransformer.ts → TSTypesTransformer.js} +10 -10
- package/src/{collect.ts → collect.js} +5 -22
- package/src/{shake.ts → shake.js} +6 -19
- package/src/{utils.ts → utils.js} +2 -3
- package/src/{wrappers.ts → wrappers.js} +58 -95
- package/LICENSE +0 -201
- package/lib/TSModule.d.ts +0 -25
- package/lib/TSModuleGraph.d.ts +0 -33
- package/lib/TSTypesTransformer.d.ts +0 -3
- package/lib/collect.d.ts +0 -2
- package/lib/shake.d.ts +0 -2
- package/lib/utils.d.ts +0 -2
- package/lib/wrappers.d.ts +0 -8
- package/tsconfig.json +0 -4
package/lib/TSModule.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type Import = {
|
|
2
|
-
specifier: string;
|
|
3
|
-
imported: string;
|
|
4
|
-
};
|
|
5
|
-
export type Export = {
|
|
6
|
-
name: string;
|
|
7
|
-
imported: string;
|
|
8
|
-
specifier?: string | null | undefined;
|
|
9
|
-
} | {
|
|
10
|
-
specifier: string;
|
|
11
|
-
};
|
|
12
|
-
export declare class TSModule {
|
|
13
|
-
imports: Map<string, Import>;
|
|
14
|
-
exports: Array<Export>;
|
|
15
|
-
bindings: Map<string, Set<any>>;
|
|
16
|
-
names: Map<string, string>;
|
|
17
|
-
used: Set<string>;
|
|
18
|
-
constructor();
|
|
19
|
-
addImport(local: string, specifier: string, imported: string): void;
|
|
20
|
-
addExport(name: string, imported: string, specifier?: string | null): void;
|
|
21
|
-
addWildcardExport(specifier: string): void;
|
|
22
|
-
addLocal(name: string, node: any): void;
|
|
23
|
-
getName(name: string): string;
|
|
24
|
-
hasBinding(name: string): boolean;
|
|
25
|
-
}
|
package/lib/TSModuleGraph.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { TSModule, Export } from './TSModule';
|
|
2
|
-
export declare class TSModuleGraph {
|
|
3
|
-
modules: Map<string, TSModule>;
|
|
4
|
-
mainModuleName: string;
|
|
5
|
-
mainModule: TSModule | null | undefined;
|
|
6
|
-
syntheticImportCount: number;
|
|
7
|
-
constructor(mainModuleName: string);
|
|
8
|
-
addModule(name: string, module: TSModule): void;
|
|
9
|
-
getModule(name: string): TSModule | null | undefined;
|
|
10
|
-
markUsed(module: TSModule, name: string, context: any): void;
|
|
11
|
-
getExport(m: TSModule, e: Export): {
|
|
12
|
-
imported: string;
|
|
13
|
-
module: TSModule;
|
|
14
|
-
name: string;
|
|
15
|
-
} | null | undefined;
|
|
16
|
-
resolveImport(module: TSModule, local: string, imported?: string): {
|
|
17
|
-
imported: string;
|
|
18
|
-
module: TSModule;
|
|
19
|
-
name: string;
|
|
20
|
-
} | null | undefined;
|
|
21
|
-
resolveExport(module: TSModule, name: string): {
|
|
22
|
-
imported: string;
|
|
23
|
-
module: TSModule;
|
|
24
|
-
name: string;
|
|
25
|
-
} | null | undefined;
|
|
26
|
-
getAllExports(module?: TSModule, excludeDefault?: boolean): Array<{
|
|
27
|
-
imported: string;
|
|
28
|
-
module: TSModule;
|
|
29
|
-
name: string;
|
|
30
|
-
}>;
|
|
31
|
-
getAllImports(): Map<string, Map<string, string>>;
|
|
32
|
-
propagate(context: any): Map<string, TSModule>;
|
|
33
|
-
}
|
package/lib/collect.d.ts
DELETED
package/lib/shake.d.ts
DELETED
package/lib/utils.d.ts
DELETED
package/lib/wrappers.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ExportDeclaration, Expression, Identifier, ImportClause, ImportDeclaration, ImportSpecifier, Modifier, NamedImportBindings } from 'typescript';
|
|
2
|
-
type AssertClause = any;
|
|
3
|
-
type NamedExportBindings = any;
|
|
4
|
-
export declare const createImportClause: (factory: any, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined) => ImportClause;
|
|
5
|
-
export declare const createImportDeclaration: (factory: any, modifiers: Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause) => ImportDeclaration;
|
|
6
|
-
export declare const createImportSpecifier: (factory: any, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7
|
-
export declare const updateExportDeclaration: (factory: any, node: ExportDeclaration, modifiers: Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined) => ExportDeclaration;
|
|
8
|
-
export {};
|
package/tsconfig.json
DELETED