You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tsconfig options are relevant for declaration emit, but there's currently no way to pass these.
>code="/** @internal */ export function hello() {}">require("oxc-transform").isolatedDeclaration("example.ts",code){errors: ['TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.']}>require("typescript").transpileDeclaration(code,{}){diagnostics: [{messageText: 'Function must have an explicit return type annotation with --isolatedDeclarations.',}]}>require("typescript").transpileDeclaration(code,{compilerOptions: {stripInternal: true}}){outputText: 'export {};\n'}
The text was updated successfully, but these errors were encountered:
If stripInternal is specified TSC will respect the internal JSDoc tag even if ID is specified, and this is the behavior that is expected of other DTS implementations.
internal is useful as an escape hatch for functions you might export from a module, but don't actually want to export from your package so they don't need to make it into declaration files.
Some
tsconfig
options are relevant for declaration emit, but there's currently no way to pass these.The text was updated successfully, but these errors were encountered: