69bc3f3b0c
* Allow type-only ImportEqualsDeclarations * Suppress CJS-in-ESM error when type-only * Add grammar error on import type in import alias * Update API baselines * Fix importsNotUsedAsValues with ImportEqualsDeclarations * Make bad error talk words more good for Daniel. Fixes #41603 * One more error message baseline update * Update transformer and emitter
18 lines
672 B
Plaintext
18 lines
672 B
Plaintext
=== /project/index.ts ===
|
|
import type SpecialError = require("cjs-dep");
|
|
>SpecialError : Symbol(SpecialError, Decl(index.ts, 0, 0))
|
|
|
|
function handleError(err: SpecialError) {}
|
|
>handleError : Symbol(handleError, Decl(index.ts, 0, 46))
|
|
>err : Symbol(err, Decl(index.ts, 1, 21))
|
|
>SpecialError : Symbol(SpecialError, Decl(index.ts, 0, 0))
|
|
|
|
=== /project/node_modules/cjs-dep/index.d.ts ===
|
|
declare class SpecialError extends Error {}
|
|
>SpecialError : Symbol(SpecialError, Decl(index.d.ts, 0, 0))
|
|
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
export = SpecialError;
|
|
>SpecialError : Symbol(SpecialError, Decl(index.d.ts, 0, 0))
|
|
|