We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type aliasing isolated declarations
Playground
// @strict: true // @declaration: true // @filename: a.ts export interface A { a: number } export const f = (x: A) => x as A; // @filename: b.ts import { f } from "./a"; export interface A { other: number } export const g = f;
g uses A as the parameter and return types
g
A
g should use A from the module a instead
a
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
π Search Terms
type aliasing isolated declarations
π Version & Regression Information
β― Playground Link
Playground
π» Code
π Actual behavior
g
usesA
as the parameter and return typesπ Expected behavior
g
should useA
from the modulea
insteadAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: