oxc-transform
Advanced tools
Comparing version 0.16.2 to 0.16.3
@@ -7,13 +7,13 @@ /* tslint:disable */ | ||
export interface TypeScriptBindingOptions { | ||
jsxPragma: string | ||
jsxPragmaFrag: string | ||
onlyRemoveTypeImports: boolean | ||
allowNamespaces: boolean | ||
allowDeclareFields: boolean | ||
jsxPragma?: string | ||
jsxPragmaFrag?: string | ||
onlyRemoveTypeImports?: boolean | ||
allowNamespaces?: boolean | ||
allowDeclareFields?: boolean | ||
} | ||
export interface ReactBindingOptions { | ||
runtime: 'classic' | 'automatic' | ||
development: boolean | ||
throwIfNamespace: boolean | ||
pure: boolean | ||
runtime?: 'classic' | 'automatic' | ||
development?: boolean | ||
throwIfNamespace?: boolean | ||
pure?: boolean | ||
importSource?: string | ||
@@ -26,3 +26,3 @@ pragma?: string | ||
export interface ArrowFunctionsBindingOptions { | ||
spec: boolean | ||
spec?: boolean | ||
} | ||
@@ -33,5 +33,13 @@ export interface Es2015BindingOptions { | ||
export interface TransformBindingOptions { | ||
typescript: TypeScriptBindingOptions | ||
react: ReactBindingOptions | ||
es2015: Es2015BindingOptions | ||
typescript?: TypeScriptBindingOptions | ||
react?: ReactBindingOptions | ||
es2015?: Es2015BindingOptions | ||
/** | ||
* Enable Sourcemap | ||
* | ||
* * `true` to generate a sourcemap for the code and include it in the result object. | ||
* | ||
* Default: false | ||
*/ | ||
sourcemap?: boolean | ||
} | ||
@@ -51,3 +59,3 @@ export interface Sourcemap { | ||
} | ||
export function transform(filename: string, sourceText: string, options: TransformBindingOptions): TransformResult | ||
function transform(filename: string, sourceText: string, options?: TransformBindingOptions | undefined | null): TransformResult | ||
export interface IsolatedDeclarationsResult { | ||
@@ -58,2 +66,2 @@ sourceText: string | ||
/** TypeScript Isolated Declarations for Standalone DTS Emit */ | ||
export function isolatedDeclaration(filename: string, sourceText: string): IsolatedDeclarationsResult | ||
function isolatedDeclaration(filename: string, sourceText: string): IsolatedDeclarationsResult |
{ | ||
"name": "oxc-transform", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"description": "Oxc transform Node API", | ||
@@ -26,11 +26,11 @@ "keywords": [ | ||
"optionalDependencies": { | ||
"@oxc-transform/binding-win32-x64-msvc": "0.16.2", | ||
"@oxc-transform/binding-win32-arm64-msvc": "0.16.2", | ||
"@oxc-transform/binding-linux-x64-gnu": "0.16.2", | ||
"@oxc-transform/binding-linux-arm64-gnu": "0.16.2", | ||
"@oxc-transform/binding-linux-x64-musl": "0.16.2", | ||
"@oxc-transform/binding-linux-arm64-musl": "0.16.2", | ||
"@oxc-transform/binding-darwin-x64": "0.16.2", | ||
"@oxc-transform/binding-darwin-arm64": "0.16.2" | ||
"@oxc-transform/binding-win32-x64-msvc": "0.16.3", | ||
"@oxc-transform/binding-win32-arm64-msvc": "0.16.3", | ||
"@oxc-transform/binding-linux-x64-gnu": "0.16.3", | ||
"@oxc-transform/binding-linux-arm64-gnu": "0.16.3", | ||
"@oxc-transform/binding-linux-x64-musl": "0.16.3", | ||
"@oxc-transform/binding-linux-arm64-musl": "0.16.3", | ||
"@oxc-transform/binding-darwin-x64": "0.16.3", | ||
"@oxc-transform/binding-darwin-arm64": "0.16.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13148
367