-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Cannot reference TSC v1.8 compilation #6382
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
declare module "_Base" {
export default class _Base {
protected element: HTMLElement;
private _var;
constructor(element: HTMLElement);
}
}
declare module "Derived" {
import _Base from "_Base";
export default class Derived extends _Base {
constructor(element: HTMLElement);
}
}
declare module "Manager" {
import _Base from "_Base";
export default class Manager {
private _provider;
constructor(provider: _Base);
}
} as a consequence:
// main.ts
/// <reference path="../../output/headers/all.d.ts" />
import Derived from "Derived";
import Manager from "Manager";
const d: Derived = new Derived(null);
const m: Manager = new Manager(d); |
Thanks for enlightening me! 🍰 Yet, I'm surprised about the syntax. I've not seen this before: import Derived from "Derived";
import Manager from "Manager"; Would you mind pointing me to where this is documented? I want to understand how this works. |
you can find Module documentation at https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Modules.md |
The suggested solution doesn't appear to work. It creates false IMHO, |
what does "false define()" mean? can you provide the expected output? |
I'm not sure but it looks like an error to me:
I don't seem to be able to reference a TypeScript file transpiled with TSC v1.8.
I have set up a repository with a sample project and a description of the errors I get when I try to reference the transpiled JavaScript type definition file:
The text was updated successfully, but these errors were encountered: