0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix: pull .d.ts files from js mod (#8671)

This commit is contained in:
Bartek Iwańczuk 2020-12-08 16:33:50 +01:00 committed by GitHub
parent df87bf1d6a
commit 9bff85836c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,12 +56,8 @@ pub fn get_asset(asset: &str) -> Option<&'static str> {
"/lib.webworker.iterable.d.ts" => inc!("lib.webworker.iterable.d.ts"),
// These come from op crates
// TODO(@kitsonk) these is even hackier than the rest of this...
"/lib.deno.web.d.ts" => {
Some(include_str!("../../op_crates/web/lib.deno_web.d.ts"))
}
"/lib.deno.fetch.d.ts" => {
Some(include_str!("../../op_crates/fetch/lib.deno_fetch.d.ts"))
}
"/lib.deno.web.d.ts" => Some(js::DENO_WEB_LIB),
"/lib.deno.fetch.d.ts" => Some(js::DENO_FETCH_LIB),
// These are included in the snapshot for TypeScript, and could be retrieved
// from there?
"/lib.d.ts" => inc!("lib.d.ts"),