From 046bbb26913f9da58b0d23ae331e9dab9dc19e59 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 19 Feb 2020 16:34:11 +1100 Subject: Support loading additional TS lib files (#3863) Fixes #3726 This PR provides support for referencing other lib files (like lib.dom.d.ts that are not used by default in Deno. --- cli/js/compiler_api.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/js/compiler_api.ts') diff --git a/cli/js/compiler_api.ts b/cli/js/compiler_api.ts index 489f3693b..d397ca568 100644 --- a/cli/js/compiler_api.ts +++ b/cli/js/compiler_api.ts @@ -101,6 +101,10 @@ export interface CompilerOptions { * Does not apply to `"esnext"` target. */ useDefineForClassFields?: boolean; + /** List of library files to be included in the compilation. If omitted, + * then the Deno main runtime libs are used. */ + lib?: string[]; + /** The locale to use to show error messages. */ locale?: string; -- cgit v1.2.3