From 2ae8a97dc539875ca0fcce442be0157f30d932b5 Mon Sep 17 00:00:00 2001 From: Blixt Date: Fri, 6 Sep 2024 19:20:31 +0200 Subject: [PATCH] Add missing enum and moduleDetection config to CompilerOptions --- src/language/typescript/monaco.contribution.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/language/typescript/monaco.contribution.ts b/src/language/typescript/monaco.contribution.ts index d272f375fa..0c9f1dd5a3 100644 --- a/src/language/typescript/monaco.contribution.ts +++ b/src/language/typescript/monaco.contribution.ts @@ -47,6 +47,12 @@ export enum ScriptTarget { Latest = ESNext } +export enum ModuleDetectionKind { + Legacy = 1, + Auto = 2, + Force = 3 +} + export enum ModuleResolutionKind { Classic = 1, NodeJs = 2 @@ -99,6 +105,7 @@ interface CompilerOptions { mapRoot?: string; maxNodeModuleJsDepth?: number; module?: ModuleKind; + moduleDetection?: ModuleDetectionKind; moduleResolution?: ModuleResolutionKind; newLine?: NewLineKind; noEmit?: boolean;