Closed
Description
π Search Terms
isolated declarations optional import error explicit type annotation
π Version & Regression Information
- This changed between versions 5.5.0-dev.20240517 and 5.5.0-dev.20240524
β― Playground Link
π» Code
// @strict: true
// @declaration: true
// @isolatedDeclarations: true
// @emitDeclarationOnly: true
// @allowJs: false
// @noCheck: true
// @showEmit
// @showEmittedFile: a.d.ts
// @filename: a.ts
import { type Foo } from 'does-not-exist';
export const a = (arg?: Foo): void => {}
export function b(arg?: Foo): void {}
π Actual behavior
arg
has Parameter must have an explicit type annotation with --isolatedDeclarations.(9011)
π Expected behavior
No errors
Additional information about the issue
This only seems to happen if the import path doesn't exist. cc @weswigham @dragomirtitian
Metadata
Metadata
Assignees
Labels
No labels