TypeScript/tests/cases/fourslash/goToImplementationTypeAlias_00.ts
Andrew Casey 737fda928c Don't treat interfaces as implementations
...even if they're in ambient contexts.  Same for type aliases.
2019-01-17 15:45:01 -08:00

12 lines
347 B
TypeScript

/// <reference path='fourslash.ts'/>
// Should go to object literals within cast expressions when invoked on interface
// @Filename: def.d.ts
//// export type TypeAlias = { P: number }
// @Filename: ref.ts
//// import { TypeAlias } from "./def";
//// const c: T/*ref*/ypeAlias = [|{ P: 2 }|];
verify.allRangesAppearInImplementationList("ref");