Closed
Description
π Search Terms
explicit type annotation false positive isolated declarations
π Version & Regression Information
- This changed between versions 5.6.0 and 5.7.0-beta
β― Playground Link
π» Code
// @strict: true
// @declaration: true
// @noCheck: true
// @emitDeclarationOnly: true
// @isolatedDeclarations: true
// @allowJs: false
// @showEmit
// @showEmittedFile: a.d.ts
import {Type} from 'foo';
export const foo = (type?: Type): void => {};
^^^^^^^^^^^ Parameter must have an explicit type annotation with --isolatedDeclarations.(9011)
π Actual behavior
Error even though type annotation exists
π Expected behavior
No error
Additional information about the issue
Sorry, I don't have time at the moment to bisect to the commit that introduced the regression