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
TypeScript Version: 2.3.0-dev.20170221
Code
export interface Foo { foo(): string; } export type Constructor<T extends object> = new (...args: any[]) => T; export const Foo = <T extends Constructor<{}>>(superclass: T): Constructor<Foo>& T => class extends superclass implements Foo { foo() { return 'baz'; } } export class Bar extends Foo(Object) { }
Expected behavior: no errors
Actual behavior:
[ts] 'extends' clause of exported class 'Bar' refers to a type whose name cannot be referenced.
The text was updated successfully, but these errors were encountered:
To note, this shows up because you have --declaration set. Unfortunately you'll need to write out the exact type to get rid of the error.
--declaration
I think there are two issues:
(2) is something I've definitely noticed, but I don't know how much of a problem it will tend to be.
Sorry, something went wrong.
Here is the issue tracking @DanielRosenwasser's point (2): #14075
No branches or pull requests
TypeScript Version: 2.3.0-dev.20170221
Code
Expected behavior:
no errors
Actual behavior:
The text was updated successfully, but these errors were encountered: