mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet.
This commit is contained in:
parent
0366d6833f
commit
2fcf1f14cf
111 changed files with 173492 additions and 178485 deletions
|
@ -93,7 +93,7 @@ fn fetch_local(specifier: &ModuleSpecifier) -> Result<File, AnyError> {
|
|||
let bytes = fs::read(&local)?;
|
||||
let charset = text_encoding::detect_charset(&bytes).to_string();
|
||||
let source = get_source_from_bytes(bytes, Some(charset))?;
|
||||
let media_type = MediaType::from(specifier);
|
||||
let media_type = MediaType::from_specifier(specifier);
|
||||
|
||||
Ok(File {
|
||||
local,
|
||||
|
@ -166,7 +166,7 @@ pub fn map_content_type(
|
|||
|
||||
(media_type, charset)
|
||||
} else {
|
||||
(MediaType::from(specifier), None)
|
||||
(MediaType::from_specifier(specifier), None)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue