We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
declaration
I use it to convert typescript files, but any version after the 0.30.0 version it doesn't have declaration in the result that the method returns
0.30.0
const xform = oxc.transform(filepath, source, { cwd: opts.cwd, typescript: { // if `--dts` flag emit types, otherwise don't declaration: opts.dts ? { stripInternal: false } : {}, rewriteImportExtensions: true, }, }); console.log(xform); // => in 0.30.0: { code, declaration, errors } if (xform.errors.length > 0) { throw new Error('oxc-transform failure: ' + xform.errors.join(';')); } if (typeof xform.declaration !== 'string') { throw new Error('oxc-transform failure: no declaration'); }
Does it stopped extracting declarations or what?
The text was updated successfully, but these errors were encountered:
fix(napi/transform): fix 'typescript.declaration' option not working
ffe0fc8
fixes #7010
06064c9
fix(napi/transform): fix 'typescript.declaration' option not working (#…
d15e408
…7012) fixes #7010
Boshen
Successfully merging a pull request may close this issue.
I use it to convert typescript files, but any version after the
0.30.0
version it doesn't havedeclaration
in the result that the method returnsDoes it stopped extracting declarations or what?
The text was updated successfully, but these errors were encountered: