@dunx/transform 3.0.1 → 3.0.2

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/dist/ast.d.ts CHANGED
@@ -30,19 +30,19 @@ export interface MethodDefinition extends Node {
30
30
  readonly key: Node;
31
31
  readonly value: FunctionExpression;
32
32
  }
33
- export interface TSParameterProperty extends Node {
33
+ interface TSParameterProperty extends Node {
34
34
  readonly type: 'TSParameterProperty';
35
35
  readonly parameter: Node;
36
36
  }
37
- export interface TSTypeAnnotation extends Node {
37
+ interface TSTypeAnnotation extends Node {
38
38
  readonly type: 'TSTypeAnnotation';
39
39
  readonly typeAnnotation: Node;
40
40
  }
41
- export interface TSTypeReference extends Node {
41
+ interface TSTypeReference extends Node {
42
42
  readonly type: 'TSTypeReference';
43
43
  readonly typeName: Node;
44
44
  }
45
- export interface ImportDeclaration extends Node {
45
+ interface ImportDeclaration extends Node {
46
46
  readonly type: 'ImportDeclaration';
47
47
  readonly specifiers: readonly Node[];
48
48
  readonly importKind: 'value' | 'type';
@@ -56,12 +56,7 @@ export interface ImportSpecifier extends Node {
56
56
  readonly local: Identifier;
57
57
  readonly importKind?: 'value' | 'type';
58
58
  }
59
- export interface TSQualifiedName extends Node {
60
- readonly type: 'TSQualifiedName';
61
- readonly left: Node;
62
- readonly right: Identifier;
63
- }
64
- export interface AssignmentPattern extends Node {
59
+ interface AssignmentPattern extends Node {
65
60
  readonly type: 'AssignmentPattern';
66
61
  readonly left: Node;
67
62
  }
@@ -69,7 +64,6 @@ export declare const isIdentifier: (node: Node | null | undefined) => node is Id
69
64
  export declare const isMethodDefinition: (node: Node | null | undefined) => node is MethodDefinition;
70
65
  export declare const isTypeReference: (node: Node | null | undefined) => node is TSTypeReference;
71
66
  export declare const isImportDeclaration: (node: Node | null | undefined) => node is ImportDeclaration;
72
- export declare const isQualifiedName: (node: Node | null | undefined) => node is TSQualifiedName;
73
67
  export declare const isAssignmentPattern: (node: Node | null | undefined) => node is AssignmentPattern;
74
68
  export declare const isParameterProperty: (node: Node | null | undefined) => node is TSParameterProperty;
75
69
  /**
@@ -90,3 +84,4 @@ export declare const nameOf: (node: Node | null | undefined) => string | undefin
90
84
  * runtime, so it is the only part the erasure map can answer for.
91
85
  */
92
86
  export declare const rootOfTypeName: (node: Node) => Node;
87
+ export {};
package/dist/erased.d.ts CHANGED
@@ -13,7 +13,5 @@ export type ErasureCause = 'import-type' | 'declared-type';
13
13
  * inline `type` specifiers, local interfaces and type aliases.
14
14
  */
15
15
  export declare const collectTypeOnlyNames: (program: Node) => ReadonlyMap<string, ErasureCause>;
16
- /** A class's own type parameters are erased, so `T` is never a usable token. */
17
- export declare const collectTypeParameters: (klass: ClassNode) => ReadonlySet<string>;
18
16
  /** Every name in this file that a value position cannot use. */
19
17
  export declare const erasedNames: (typeOnly: ReadonlyMap<string, ErasureCause>, klass: ClassNode) => ReadonlyMap<string, ErasureCause>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dunx/transform",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Load-time transform that records constructor dependencies for the dunx container",
5
5
  "keywords": [
6
6
  "bun",