-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
VS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issueWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 2.2.1
Code
For a javascript project
a.js:
export function abc( x, y ) { }a.d.ts:
export declare function abc(x: number, y: number): boolean;b.js
import { abc } from './a'Expected behavior:
Within both a.js and b.js, the type of abc is (number, number) => boolean
Actual behavior:
Within a.js, the type of abc is (any, any) => void
Within b.js, the type of abc is (number, number) => boolean
The d.ts file is not applied within a module itself, only when it is imported into other files
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
VS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issueWorking as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug