oxc-transform 0.16.2 → 0.17.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/index.d.ts +23 -15
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
6
|
export interface TypeScriptBindingOptions {
|
|
7
|
-
jsxPragma
|
|
8
|
-
jsxPragmaFrag
|
|
9
|
-
onlyRemoveTypeImports
|
|
10
|
-
allowNamespaces
|
|
11
|
-
allowDeclareFields
|
|
7
|
+
jsxPragma?: string
|
|
8
|
+
jsxPragmaFrag?: string
|
|
9
|
+
onlyRemoveTypeImports?: boolean
|
|
10
|
+
allowNamespaces?: boolean
|
|
11
|
+
allowDeclareFields?: boolean
|
|
12
12
|
}
|
|
13
13
|
export interface ReactBindingOptions {
|
|
14
|
-
runtime
|
|
15
|
-
development
|
|
16
|
-
throwIfNamespace
|
|
17
|
-
pure
|
|
14
|
+
runtime?: 'classic' | 'automatic'
|
|
15
|
+
development?: boolean
|
|
16
|
+
throwIfNamespace?: boolean
|
|
17
|
+
pure?: boolean
|
|
18
18
|
importSource?: string
|
|
19
19
|
pragma?: string
|
|
20
20
|
pragmaFrag?: string
|
|
@@ -22,15 +22,23 @@ export interface ReactBindingOptions {
|
|
|
22
22
|
useSpread?: boolean
|
|
23
23
|
}
|
|
24
24
|
export interface ArrowFunctionsBindingOptions {
|
|
25
|
-
spec
|
|
25
|
+
spec?: boolean
|
|
26
26
|
}
|
|
27
27
|
export interface Es2015BindingOptions {
|
|
28
28
|
arrowFunction?: ArrowFunctionsBindingOptions
|
|
29
29
|
}
|
|
30
30
|
export interface TransformBindingOptions {
|
|
31
|
-
typescript
|
|
32
|
-
react
|
|
33
|
-
es2015
|
|
31
|
+
typescript?: TypeScriptBindingOptions
|
|
32
|
+
react?: ReactBindingOptions
|
|
33
|
+
es2015?: Es2015BindingOptions
|
|
34
|
+
/**
|
|
35
|
+
* Enable Sourcemap
|
|
36
|
+
*
|
|
37
|
+
* * `true` to generate a sourcemap for the code and include it in the result object.
|
|
38
|
+
*
|
|
39
|
+
* Default: false
|
|
40
|
+
*/
|
|
41
|
+
sourcemap?: boolean
|
|
34
42
|
}
|
|
35
43
|
export interface Sourcemap {
|
|
36
44
|
file?: string
|
|
@@ -45,10 +53,10 @@ export interface TransformResult {
|
|
|
45
53
|
map?: Sourcemap
|
|
46
54
|
errors: Array<string>
|
|
47
55
|
}
|
|
48
|
-
|
|
56
|
+
function transform(filename: string, sourceText: string, options?: TransformBindingOptions | undefined | null): TransformResult
|
|
49
57
|
export interface IsolatedDeclarationsResult {
|
|
50
58
|
sourceText: string
|
|
51
59
|
errors: Array<string>
|
|
52
60
|
}
|
|
53
61
|
/** TypeScript Isolated Declarations for Standalone DTS Emit */
|
|
54
|
-
|
|
62
|
+
function isolatedDeclaration(filename: string, sourceText: string): IsolatedDeclarationsResult
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Oxc transform Node API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"transform"
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"index.js"
|
|
24
24
|
],
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@oxc-transform/binding-win32-x64-msvc": "0.
|
|
27
|
-
"@oxc-transform/binding-win32-arm64-msvc": "0.
|
|
28
|
-
"@oxc-transform/binding-linux-x64-gnu": "0.
|
|
29
|
-
"@oxc-transform/binding-linux-arm64-gnu": "0.
|
|
30
|
-
"@oxc-transform/binding-linux-x64-musl": "0.
|
|
31
|
-
"@oxc-transform/binding-linux-arm64-musl": "0.
|
|
32
|
-
"@oxc-transform/binding-darwin-x64": "0.
|
|
33
|
-
"@oxc-transform/binding-darwin-arm64": "0.
|
|
26
|
+
"@oxc-transform/binding-win32-x64-msvc": "0.17.0",
|
|
27
|
+
"@oxc-transform/binding-win32-arm64-msvc": "0.17.0",
|
|
28
|
+
"@oxc-transform/binding-linux-x64-gnu": "0.17.0",
|
|
29
|
+
"@oxc-transform/binding-linux-arm64-gnu": "0.17.0",
|
|
30
|
+
"@oxc-transform/binding-linux-x64-musl": "0.17.0",
|
|
31
|
+
"@oxc-transform/binding-linux-arm64-musl": "0.17.0",
|
|
32
|
+
"@oxc-transform/binding-darwin-x64": "0.17.0",
|
|
33
|
+
"@oxc-transform/binding-darwin-arm64": "0.17.0"
|
|
34
34
|
}
|
|
35
35
|
}
|