@e-mc/types 0.10.11 → 0.10.12
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/README.md +5 -5
- package/constant.d.ts +1 -1
- package/lib/document.d.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.12/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -197,10 +197,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
197
197
|
|
|
198
198
|
## References
|
|
199
199
|
|
|
200
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
201
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
202
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
203
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
200
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/index.d.ts
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/logger.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/module.d.ts
|
|
203
|
+
- https://www.unpkg.com/@e-mc/types@0.10.12/lib/object.d.ts
|
|
204
204
|
|
|
205
205
|
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
206
206
|
* https://www.npmjs.com/package/@types/bytes
|
package/constant.d.ts
CHANGED
package/lib/document.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface TransformOptions<T = AnyObject, U = T> extends TransformOutput
|
|
|
81
81
|
supplementChunks: ChunkData[];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export interface ITransformSeries<T = AnyObject, U = T> extends IModule, TransformOptions<T, U> {
|
|
84
|
+
export interface ITransformSeries<T = AnyObject, U = T, V = object> extends IModule, TransformOptions<T, U> {
|
|
85
85
|
readonly type: string;
|
|
86
86
|
init(instance: IModule, dirname?: string): this;
|
|
87
87
|
close(instance: IModule): void;
|
|
@@ -89,12 +89,12 @@ export interface ITransformSeries<T = AnyObject, U = T> extends IModule, Transfo
|
|
|
89
89
|
getMainFile(code?: string, imports?: StringMap): Undef<SourceInput<string>>;
|
|
90
90
|
getSourceFiles(imports?: StringMap): Undef<SourceInput>;
|
|
91
91
|
toBaseConfig(all?: boolean): T;
|
|
92
|
-
upgrade<
|
|
93
|
-
upgradeESM<
|
|
92
|
+
upgrade<W = unknown>(context: W, dirname?: string, pkgname?: string): W;
|
|
93
|
+
upgradeESM<W = unknown>(context: W, dirname?: string, pkgname?: string): Promise<W>;
|
|
94
94
|
set code(value);
|
|
95
95
|
get code(): string;
|
|
96
96
|
get out(): IOut;
|
|
97
|
-
get metadata():
|
|
97
|
+
get metadata(): V;
|
|
98
98
|
get options(): TransformOutput;
|
|
99
99
|
get productionRelease(): boolean;
|
|
100
100
|
get imported(): boolean;
|