@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/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
- }
@@ -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
- }
@@ -1,3 +0,0 @@
1
- import { Transformer } from '@atlaspack/plugin';
2
- declare const _default: Transformer<unknown>;
3
- export default _default;
package/lib/collect.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type { TSModuleGraph } from './TSModuleGraph';
2
- export declare function collect(moduleGraph: TSModuleGraph, context: any, sourceFile: any): any;
package/lib/shake.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type { TSModuleGraph } from './TSModuleGraph';
2
- export declare function shake(moduleGraph: TSModuleGraph, context: any, sourceFile: any): any;
package/lib/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare function getExportedName(node: any): string | null | undefined;
2
- export declare function isDeclaration(node: any): boolean;
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
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "include": ["src"]
4
- }