-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Can't access property of interface to reference type in another interface #10588
New issue
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
Comments
It is unreachable because Foo is not a name space, and variable Also, you can try something like above to solve your problem interface Foo {
bar: string;
}
namespace Foo {
export type bar= string;
}
interface Box<T> {
container: T;
}
interface FooWithBoxedProps {
bar: Box<Foo.bar>;
} |
duplicate of #4640 |
Which is closed in favor of #6606. I'll post my use case there. Thanks so far. |
TypeScript Version: 1.8.0 (Playground) / 2.1.0-dev
Code
Expected behavior:
Behave exactly like this:
Actual behavior:
Cannot find namespace 'Foo'.
The text was updated successfully, but these errors were encountered: