@dunx/transform 3.5.0 → 3.6.0
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/deps.d.ts +2 -3
- package/package.json +1 -1
package/dist/deps.d.ts
CHANGED
|
@@ -5,14 +5,13 @@ export interface TransformResult {
|
|
|
5
5
|
readonly annotated: readonly string[];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Records each class's constructor dependencies
|
|
9
|
-
* declared type, as thunks on the class itself.
|
|
8
|
+
* Records each class's constructor dependencies as a thunk on the class itself.
|
|
10
9
|
*
|
|
11
10
|
* A thunk, not a literal: the body is evaluated when the record is read rather
|
|
12
11
|
* than when the module is defined, so a dependency declared later in the file -
|
|
13
12
|
* or in a circular import - is not a temporal-dead-zone crash. That is what
|
|
14
13
|
* removes the need for a `forwardRef` escape hatch, and it is also why a class decorator
|
|
15
|
-
* cannot read the
|
|
14
|
+
* cannot read the record while it runs: the statement is appended after the
|
|
16
15
|
* class, which is after decoration.
|
|
17
16
|
*/
|
|
18
17
|
export declare const transform: (source: string, filename?: string) => TransformResult;
|