diff --git a/.changeset/lovely-lobsters-bow.md b/.changeset/lovely-lobsters-bow.md new file mode 100644 index 000000000000..22730ac54cc0 --- /dev/null +++ b/.changeset/lovely-lobsters-bow.md @@ -0,0 +1,5 @@ +--- +"@typescript/vfs": patch +--- + +Update hardcoded list of known lib files diff --git a/packages/typescript-vfs/src/index.ts b/packages/typescript-vfs/src/index.ts index de4bbcf1cbe0..be88ea840ac8 100755 --- a/packages/typescript-vfs/src/index.ts +++ b/packages/typescript-vfs/src/index.ts @@ -129,16 +129,22 @@ export const knownLibFilesForCompilerOptions = (compilerOptions: CompilerOptions // or similar is merged. const files = [ "lib.d.ts", + "lib.core.d.ts", "lib.decorators.d.ts", "lib.decorators.legacy.d.ts", + "lib.dom.asynciterable.d.ts", "lib.dom.d.ts", "lib.dom.iterable.d.ts", + "lib.webworker.asynciterable.d.ts", "lib.webworker.d.ts", "lib.webworker.importscripts.d.ts", "lib.webworker.iterable.d.ts", "lib.scripthost.d.ts", "lib.es5.d.ts", "lib.es6.d.ts", + "lib.es7.d.ts", + "lib.core.es6.d.ts", + "lib.core.es7.d.ts", "lib.es2015.collection.d.ts", "lib.es2015.core.d.ts", "lib.es2015.d.ts", @@ -152,6 +158,8 @@ export const knownLibFilesForCompilerOptions = (compilerOptions: CompilerOptions "lib.es2016.array.include.d.ts", "lib.es2016.d.ts", "lib.es2016.full.d.ts", + "lib.es2016.intl.d.ts", + "lib.es2017.arraybuffer.d.ts", "lib.es2017.d.ts", "lib.es2017.date.d.ts", "lib.es2017.full.d.ts", @@ -203,15 +211,30 @@ export const knownLibFilesForCompilerOptions = (compilerOptions: CompilerOptions "lib.es2023.collection.d.ts", "lib.es2023.d.ts", "lib.es2023.full.d.ts", + "lib.es2023.intl.d.ts", + "lib.es2024.arraybuffer.d.ts", + "lib.es2024.collection.d.ts", + "lib.es2024.d.ts", + "lib.es2024.full.d.ts", + "lib.es2024.object.d.ts", + "lib.es2024.promise.d.ts", + "lib.es2024.regexp.d.ts", + "lib.es2024.sharedmemory.d.ts", + "lib.es2024.string.d.ts", "lib.esnext.array.d.ts", "lib.esnext.asynciterable.d.ts", "lib.esnext.bigint.d.ts", + "lib.esnext.collection.d.ts", "lib.esnext.d.ts", "lib.esnext.decorators.d.ts", "lib.esnext.disposable.d.ts", + "lib.esnext.float16.d.ts", "lib.esnext.full.d.ts", "lib.esnext.intl.d.ts", + "lib.esnext.iterator.d.ts", + "lib.esnext.object.d.ts", "lib.esnext.promise.d.ts", + "lib.esnext.regexp.d.ts", "lib.esnext.string.d.ts", "lib.esnext.symbol.d.ts", "lib.esnext.weakref.d.ts"