-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support other libs in runtime compiler API #3726
Comments
As I mentioned in #3799, you can use the triple slash directive to reference libraries in a specific file. /// <reference lib="https://raw.githubusercontent.com/microsoft/TypeScript/master/lib/lib.dom.d.ts" /> But perhaps allowing for simply In addition, some kind of option in the Deno.compile/bundle functions would be good (so that you don't have to reference the lib in every file). |
Yeah, I think this should be pretty straight forward, and would allow |
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for loading TypeScript libs that are not bundled with Deno lazily. It also provides the ability for Deno to support the triple-slash lib reference. There are a couple other minor fixes and improvements as well.
Fixes denoland#3726 This PR provides support for referencing other lib files that are not used by default in Deno via the compiler APIs.
Fixes #3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
FYI |
Any updates? I got a lot of ts errors when I used
From the error message, it is the
|
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Fixes denoland/deno#3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno.
Currently the runtime API would support the compiler option of
lib
, but it would fail in most scenarios where if a lib is included that isn't inlined into the TypeScript compiler. For examplelib: [ "esnext", "dom" ]
would fail, becauselib.dom.d.ts
is not inlined into the compiler.We should support attempting to externally fetch libs when requested by the runtime compiler APIs, so we don't have to bake these in, but end users would be able to compile against a different set of libs.
The text was updated successfully, but these errors were encountered: