Skip to content

Can't access property of interface to reference type in another interface #10588

Closed
@donaldpipowitch

Description

@donaldpipowitch

TypeScript Version: 1.8.0 (Playground) / 2.1.0-dev

Code

interface Foo {
  bar: string;
}

interface Box<T> {
  container: T;
}

interface FooWithBoxedProps {
  bar: Box<Foo.bar>;
}

Expected behavior:

Behave exactly like this:

interface Foo {
  bar: string;
}

interface Box<T> {
  container: T;
}

interface FooWithBoxedProps {
  bar: Box<string>;
}

Actual behavior:

Cannot find namespace 'Foo'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions