typescript 7.1.0-dev.20260910.1 → 7.1.0-dev.20260912.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,10 @@ export interface APIMethodInfo {
43
43
  getSourceFile: APIMethod<GetSourceFileParams, SourceFileResponse | null>;
44
44
  getSourceFileNames: APIMethod<GetSourceFileNamesParams, string[]>;
45
45
  getSourceFileMetadata: APIMethod<GetSourceFileParams, SourceFileMetadata | null>;
46
+ getResolvedModule: APIMethod<GetResolvedModuleParams, ResolvedModule | null>;
47
+ getResolvedModuleFromModuleSpecifier: APIMethod<GetResolvedModuleFromModuleSpecifierParams, ResolvedModule | null>;
48
+ getResolvedTypeReferenceDirective: APIMethod<GetResolvedTypeReferenceDirectiveParams, ResolvedTypeReferenceDirective | null>;
49
+ getResolvedTypeReferenceDirectiveFromTypeReferenceDirective: APIMethod<GetResolvedTypeReferenceDirectiveFromReferenceParams, ResolvedTypeReferenceDirective | null>;
46
50
  getConfigFileNames: APIMethod<GetProjectDiagnosticsParams, string[] | null>;
47
51
  getConfigSourceFile: APIMethod<GetSourceFileParams, SourceFileResponse | null>;
48
52
  resolveName: APIMethod<ResolveNameParams, SymbolResponse | null>;
@@ -167,12 +171,12 @@ export interface ReleaseParams {
167
171
  }
168
172
  export interface BatchRequestsParams {
169
173
  requests: readonly BatchRequest[] | null;
170
- continuationToken?: string;
171
- maxResponseBytesPerPage?: number;
174
+ continuationToken?: string | undefined;
175
+ maxResponseBytesPerPage?: number | undefined;
172
176
  }
173
177
  export interface BatchRequestsResponse {
174
178
  responses: BatchResponse[];
175
- continuationToken?: string;
179
+ continuationToken?: string | undefined;
176
180
  }
177
181
  /** InitializeResponse is returned by the initialize method. */
178
182
  export interface InitializeResponse {
@@ -190,25 +194,25 @@ export interface UpdateSnapshotParams {
190
194
  * Snapshot, when set, requires this to be the latest active snapshot and layers
191
195
  * FileSystem over that snapshot's filesystem. Used by Snapshot.update.
192
196
  */
193
- snapshot?: number;
197
+ snapshot?: number | undefined;
194
198
  /**
195
199
  * OpenProjects lists tsconfig.json files to open/load in the new snapshot.
196
200
  * Opens are ref-counted and persist across snapshots until closed.
197
201
  */
198
- openProjects?: readonly DocumentIdentifier[];
202
+ openProjects?: readonly DocumentIdentifier[] | undefined;
199
203
  /**
200
204
  * CloseProjects lists tsconfig.json files to release in the new snapshot.
201
205
  * A project is only unloaded once every API client that opened it closes it.
202
206
  */
203
- closeProjects?: readonly DocumentIdentifier[];
207
+ closeProjects?: readonly DocumentIdentifier[] | undefined;
204
208
  /** FileChanges describes file system changes since the last snapshot. */
205
- fileChanges?: APIFileChanges;
209
+ fileChanges?: APIFileChanges | undefined;
206
210
  /**
207
211
  * FileSystem supplies file contents and directory listings for the new snapshot.
208
212
  * A full filesystem is canonical and total. A filesystem layer is checked
209
213
  * before falling back to the host filesystem.
210
214
  */
211
- fileSystem?: RequestFileSystem;
215
+ fileSystem?: RequestFileSystem | undefined;
212
216
  /**
213
217
  * OpenFiles lists files to keep open for the API client, mirroring LSP's
214
218
  * textDocument/didOpen. For each file, ancestor directories are searched for a
@@ -217,12 +221,12 @@ export interface UpdateSnapshotParams {
217
221
  * inferred project (e.g. a node_modules d.ts not in any project's import graph).
218
222
  * Opens persist across snapshots until the file is closed.
219
223
  */
220
- openFiles?: readonly DocumentIdentifier[];
224
+ openFiles?: readonly DocumentIdentifier[] | undefined;
221
225
  /**
222
226
  * CloseFiles lists files to release in the new snapshot. A file is only fully
223
227
  * closed once every API client that opened it closes it.
224
228
  */
225
- closeFiles?: readonly DocumentIdentifier[];
229
+ closeFiles?: readonly DocumentIdentifier[] | undefined;
226
230
  }
227
231
  /** UpdateSnapshotResponse is returned by updateSnapshot. */
228
232
  export interface UpdateSnapshotResponse {
@@ -234,7 +238,7 @@ export interface UpdateSnapshotResponse {
234
238
  * Changes describes source file differences from the previous snapshot.
235
239
  * Nil for the first snapshot in a session.
236
240
  */
237
- changes?: SnapshotChanges;
241
+ changes?: SnapshotChanges | undefined;
238
242
  }
239
243
  /**
240
244
  * UpdateTemporarySnapshotParams are the parameters for creating a temporary
@@ -251,8 +255,8 @@ export interface UpdateTemporarySnapshotParams {
251
255
  export interface CreateProgramParams {
252
256
  rootFiles: readonly DocumentIdentifier[] | null;
253
257
  createProgramOptions: CreateProgramOptions;
254
- oldProgram?: CreateProgramOldProgramParams;
255
- fileChanges?: APIFileChanges;
258
+ oldProgram?: CreateProgramOldProgramParams | undefined;
259
+ fileChanges?: APIFileChanges | undefined;
256
260
  }
257
261
  export interface CreateProgramResponse {
258
262
  snapshot: number;
@@ -264,10 +268,10 @@ export interface ParseCommandLineParams {
264
268
  export interface ConfigFileResponse {
265
269
  fileNames: string[];
266
270
  options: CompilerOptions;
267
- projectReferences?: ProjectReference[];
268
- typeAcquisition?: TypeAcquisition;
269
- compileOnSave?: boolean;
270
- raw?: unknown;
271
+ projectReferences?: ProjectReference[] | undefined;
272
+ typeAcquisition?: TypeAcquisition | undefined;
273
+ compileOnSave?: boolean | undefined;
274
+ raw?: unknown | undefined;
271
275
  errors: DiagnosticResponse[];
272
276
  }
273
277
  export interface ReadConfigFileParams {
@@ -275,12 +279,12 @@ export interface ReadConfigFileParams {
275
279
  }
276
280
  export interface ReadConfigFileResponse {
277
281
  config: unknown;
278
- error?: DiagnosticResponse;
282
+ error?: DiagnosticResponse | undefined;
279
283
  }
280
284
  export interface ParseJsonConfigFileContentParams {
281
285
  json: unknown;
282
- configDirectory?: string;
283
- configFileName?: DocumentIdentifier;
286
+ configDirectory?: string | undefined;
287
+ configFileName?: DocumentIdentifier | undefined;
284
288
  }
285
289
  export interface ParseConfigFileParams {
286
290
  file: DocumentIdentifier;
@@ -291,8 +295,8 @@ export interface TranspileParams {
291
295
  }
292
296
  export interface TranspileOutputResponse {
293
297
  outputText: string;
294
- diagnostics?: DiagnosticResponse[];
295
- sourceMapText?: string;
298
+ diagnostics?: DiagnosticResponse[] | undefined;
299
+ sourceMapText?: string | undefined;
296
300
  }
297
301
  export interface TranspileFromFileParams {
298
302
  fileName: string;
@@ -328,10 +332,10 @@ export interface SymbolResponse {
328
332
  name: string;
329
333
  flags: number;
330
334
  checkFlags: number;
331
- declarations?: string[];
332
- valueDeclaration?: string;
333
- parent?: number;
334
- exportSymbol?: number;
335
+ declarations?: string[] | undefined;
336
+ valueDeclaration?: string | undefined;
337
+ parent?: number | undefined;
338
+ exportSymbol?: number | undefined;
335
339
  }
336
340
  export interface GetSymbolsAtPositionsParams {
337
341
  snapshot: number;
@@ -367,47 +371,47 @@ export interface GetTypeOfSymbolParams {
367
371
  export interface TypeResponse {
368
372
  id: number;
369
373
  flags: number;
370
- objectFlags?: number;
371
- isTupleType?: boolean;
374
+ objectFlags?: number | undefined;
375
+ isTupleType?: boolean | undefined;
372
376
  /**
373
377
  * Value is literal type data. BigInt literals are encoded as signed decimal
374
378
  * strings because JSON cannot represent bigint; absent values are null.
375
379
  */
376
380
  value: unknown;
377
381
  /** ObjectType / TypeReference / StringMappingType / IndexType target */
378
- target?: number;
382
+ target?: number | undefined;
379
383
  /** InterfaceType type parameters */
380
- typeParameters?: number[];
381
- outerTypeParameters?: number[];
382
- localTypeParameters?: number[];
384
+ typeParameters?: number[] | undefined;
385
+ outerTypeParameters?: number[] | undefined;
386
+ localTypeParameters?: number[] | undefined;
383
387
  /** TupleType data */
384
- elementFlags?: number[];
385
- fixedLength?: number;
386
- readonly?: boolean;
387
- labeledElementDeclarations?: string[];
388
+ elementFlags?: number[] | undefined;
389
+ fixedLength?: number | undefined;
390
+ readonly?: boolean | undefined;
391
+ labeledElementDeclarations?: string[] | undefined;
388
392
  /** IndexedAccessType data */
389
- objectType?: number;
390
- indexType?: number;
393
+ objectType?: number | undefined;
394
+ indexType?: number | undefined;
391
395
  /** ConditionalType data */
392
- checkType?: number;
393
- extendsType?: number;
396
+ checkType?: number | undefined;
397
+ extendsType?: number | undefined;
394
398
  /** SubstitutionType data */
395
- baseType?: number;
396
- substConstraint?: number;
399
+ baseType?: number | undefined;
400
+ substConstraint?: number | undefined;
397
401
  /** TemplateLiteralType text segments */
398
- texts?: string[];
402
+ texts?: string[] | undefined;
399
403
  /** FreshableType data (LiteralType and computed enum types) */
400
- freshType?: number;
401
- regularType?: number;
404
+ freshType?: number | undefined;
405
+ regularType?: number | undefined;
402
406
  /** TypeParameter data */
403
- isThisType?: boolean;
407
+ isThisType?: boolean | undefined;
404
408
  /** IntrinsicType data */
405
- intrinsicName?: string;
409
+ intrinsicName?: string | undefined;
406
410
  /** TypeAlias data */
407
- aliasTypeArguments?: number[];
408
- aliasSymbol?: number;
411
+ aliasTypeArguments?: number[] | undefined;
412
+ aliasSymbol?: number | undefined;
409
413
  /** Symbol associated with structured types */
410
- symbol?: number;
414
+ symbol?: number | undefined;
411
415
  }
412
416
  export interface GetTypesOfSymbolsParams {
413
417
  snapshot: number;
@@ -439,6 +443,50 @@ export interface SourceFileMetadata {
439
443
  packageJsonDirectory: string;
440
444
  impliedNodeFormat: ModuleKind;
441
445
  }
446
+ export interface GetResolvedModuleParams {
447
+ snapshot: number;
448
+ project: string;
449
+ file: DocumentIdentifier;
450
+ moduleName: string;
451
+ mode: ModuleKind;
452
+ }
453
+ export interface ResolvedModule {
454
+ resolvedFileName: string;
455
+ originalPath?: string | undefined;
456
+ extension: string;
457
+ resolvedUsingTsExtension?: boolean | undefined;
458
+ resolvedUsingExtraExtensions?: boolean | undefined;
459
+ packageId?: PackageId | undefined;
460
+ isExternalLibraryImport?: boolean | undefined;
461
+ alternateResult?: string | undefined;
462
+ }
463
+ export interface GetResolvedModuleFromModuleSpecifierParams {
464
+ snapshot: number;
465
+ project: string;
466
+ moduleSpecifier: string;
467
+ sourceFile?: DocumentIdentifier | undefined;
468
+ }
469
+ export interface GetResolvedTypeReferenceDirectiveParams {
470
+ snapshot: number;
471
+ project: string;
472
+ file: DocumentIdentifier;
473
+ typeDirectiveName: string;
474
+ mode: ModuleKind;
475
+ }
476
+ export interface ResolvedTypeReferenceDirective {
477
+ primary: boolean;
478
+ resolvedFileName: string;
479
+ originalPath?: string | undefined;
480
+ packageId?: PackageId | undefined;
481
+ isExternalLibraryImport?: boolean | undefined;
482
+ }
483
+ export interface GetResolvedTypeReferenceDirectiveFromReferenceParams {
484
+ snapshot: number;
485
+ project: string;
486
+ sourceFile: DocumentIdentifier;
487
+ typeDirectiveName: string;
488
+ resolutionMode: ModuleKind;
489
+ }
442
490
  /** GetProjectDiagnosticsParams are parameters for project-wide diagnostic methods. */
443
491
  export interface GetProjectDiagnosticsParams {
444
492
  snapshot: number;
@@ -449,15 +497,15 @@ export interface ResolveNameParams {
449
497
  project: string;
450
498
  name: string;
451
499
  /** Optional: node handle for location context */
452
- location?: string;
500
+ location?: string | undefined;
453
501
  /** Optional: file for location context (alternative to Location) */
454
- file?: DocumentIdentifier;
502
+ file?: DocumentIdentifier | undefined;
455
503
  /** Optional: position in file for location context (with File) */
456
- position?: number;
504
+ position?: number | undefined;
457
505
  /** SymbolFlags for what kind of symbol to find */
458
506
  meaning: number;
459
507
  /** Whether to exclude global symbols */
460
- excludeGlobals?: boolean;
508
+ excludeGlobals?: boolean | undefined;
461
509
  }
462
510
  /**
463
511
  * GetSymbolsInScopeParams are parameters for getSymbolsInScope, which returns
@@ -467,11 +515,11 @@ export interface GetSymbolsInScopeParams {
467
515
  snapshot: number;
468
516
  project: string;
469
517
  /** Optional: node handle for location context */
470
- location?: string;
518
+ location?: string | undefined;
471
519
  /** Optional: file for location context (alternative to Location) */
472
- file?: DocumentIdentifier;
520
+ file?: DocumentIdentifier | undefined;
473
521
  /** Optional: position in file for location context (with File) */
474
- position?: number;
522
+ position?: number | undefined;
475
523
  /** SymbolFlags for what kind of symbols to find */
476
524
  meaning: number;
477
525
  }
@@ -484,11 +532,11 @@ export interface GetSignaturesOfTypeParams {
484
532
  export interface SignatureResponse {
485
533
  id: number;
486
534
  flags: number;
487
- declaration?: string;
488
- typeParameters?: number[];
489
- parameters?: number[];
490
- thisParameter?: number;
491
- target?: number;
535
+ declaration?: string | undefined;
536
+ typeParameters?: number[] | undefined;
537
+ parameters?: number[] | undefined;
538
+ thisParameter?: number | undefined;
539
+ target?: number | undefined;
492
540
  }
493
541
  export interface GetResolvedSignatureParams {
494
542
  snapshot: number;
@@ -591,8 +639,8 @@ export interface TypeToTypeNodeParams {
591
639
  snapshot: number;
592
640
  project: string;
593
641
  type: number;
594
- location?: string;
595
- flags?: number;
642
+ location?: string | undefined;
643
+ flags?: number | undefined;
596
644
  }
597
645
  /** SignatureToSignatureDeclarationParams are the parameters for the signatureToSignatureDeclaration method. */
598
646
  export interface SignatureToSignatureDeclarationParams {
@@ -600,8 +648,8 @@ export interface SignatureToSignatureDeclarationParams {
600
648
  project: string;
601
649
  signature: number;
602
650
  kind: number;
603
- location?: string;
604
- flags?: number;
651
+ location?: string | undefined;
652
+ flags?: number | undefined;
605
653
  }
606
654
  /** CheckerSignatureParams are parameters for checker methods that operate on a signature. */
607
655
  export interface CheckerSignatureParams {
@@ -613,8 +661,8 @@ export interface CheckerSignatureParams {
613
661
  export interface TypePredicateResponse {
614
662
  kind: number;
615
663
  parameterIndex: number;
616
- parameterName?: string;
617
- type?: TypeResponse;
664
+ parameterName?: string | undefined;
665
+ type?: TypeResponse | undefined;
618
666
  }
619
667
  /** CheckerTypeParams are parameters for checker methods that operate on a type. */
620
668
  export interface CheckerTypeParams {
@@ -633,8 +681,8 @@ export interface GetPropertyOfTypeParams {
633
681
  export interface IndexInfoResponse {
634
682
  keyType: TypeResponse;
635
683
  valueType: TypeResponse;
636
- isReadonly?: boolean;
637
- declaration?: string;
684
+ isReadonly?: boolean | undefined;
685
+ declaration?: string | undefined;
638
686
  }
639
687
  export interface GetImportAdderEditsParams {
640
688
  snapshot: number;
@@ -672,7 +720,7 @@ export interface GetMemberInModuleExportsParams {
672
720
  */
673
721
  export interface JSDocTagInfo {
674
722
  name: string;
675
- text?: string;
723
+ text?: string | undefined;
676
724
  }
677
725
  /** GetReferencesToSymbolInFileParams are the parameters for the getReferencesToSymbolInFile method. */
678
726
  export interface GetReferencesToSymbolInFileParams {
@@ -691,7 +739,7 @@ export interface GetReferencedSymbolsForNodeParams {
691
739
  /** ReferencedSymbolEntry represents a symbol definition and its references. */
692
740
  export interface ReferencedSymbolEntry {
693
741
  definition: string;
694
- symbol?: SymbolResponse;
742
+ symbol?: SymbolResponse | undefined;
695
743
  references: string[];
696
744
  }
697
745
  /** GetSignatureUsagesParams are the parameters for the getSignatureUsages method. */
@@ -703,7 +751,7 @@ export interface GetSignatureUsagesParams {
703
751
  /** SignatureUsageResponse represents a single usage of a signature as a name-call pair. */
704
752
  export interface SignatureUsageResponse {
705
753
  name: string;
706
- call?: string;
754
+ call?: string | undefined;
707
755
  }
708
756
  /** GetCompletionsAtPositionParams are the parameters for the getCompletionsAtPosition method. */
709
757
  export interface GetCompletionsAtPositionParams {
@@ -711,8 +759,8 @@ export interface GetCompletionsAtPositionParams {
711
759
  project: string;
712
760
  file: DocumentIdentifier;
713
761
  position: number;
714
- triggerCharacter?: string;
715
- includeSymbol?: boolean;
762
+ triggerCharacter?: string | undefined;
763
+ includeSymbol?: boolean | undefined;
716
764
  }
717
765
  /** CompletionInfoResponse wraps a list of completion entries. */
718
766
  export interface CompletionInfoResponse {
@@ -723,46 +771,46 @@ export interface CompletionInfoResponse {
723
771
  export interface GetDiagnosticsParams {
724
772
  snapshot: number;
725
773
  project: string;
726
- files?: readonly DocumentIdentifier[];
774
+ files?: readonly DocumentIdentifier[] | undefined;
727
775
  }
728
776
  /** DiagnosticResponse is the API response for a single diagnostic. */
729
777
  export interface DiagnosticResponse {
730
778
  /** FileName is the path of the file this diagnostic belongs to, if any. */
731
- fileName?: string;
779
+ fileName?: string | undefined;
732
780
  /** Pos is the start position of the diagnostic in the source file. */
733
781
  pos: number;
734
782
  /** End is the end position of the diagnostic in the source file. */
735
783
  end: number;
736
784
  /** StartPosition is the zero-based line and UTF-16 character position of Pos. */
737
- startPosition?: DiagnosticPositionResponse;
785
+ startPosition?: DiagnosticPositionResponse | undefined;
738
786
  /** EndPosition is the zero-based line and UTF-16 character position of End. */
739
- endPosition?: DiagnosticPositionResponse;
787
+ endPosition?: DiagnosticPositionResponse | undefined;
740
788
  /** SourceLines contains the source lines needed to render this diagnostic with context. */
741
- sourceLines?: DiagnosticSourceLineResponse[];
789
+ sourceLines?: DiagnosticSourceLineResponse[] | undefined;
742
790
  /** Code is the diagnostic error code. */
743
791
  code: number;
744
792
  /** Category is the diagnostic category (error, warning, suggestion, message). */
745
793
  category: number;
746
794
  /** Source is a custom diagnostic-code prefix. An empty value uses the default "TS". */
747
- source?: string;
795
+ source?: string | undefined;
748
796
  /** Text is the localized diagnostic message text. */
749
797
  text: string;
750
798
  /** ReportsUnnecessary indicates this diagnostic highlights unnecessary code. */
751
- reportsUnnecessary?: boolean;
799
+ reportsUnnecessary?: boolean | undefined;
752
800
  /** ReportsDeprecated indicates this diagnostic highlights deprecated code. */
753
- reportsDeprecated?: boolean;
801
+ reportsDeprecated?: boolean | undefined;
754
802
  /** MessageChain contains chained diagnostic messages, if any. */
755
- messageChain?: DiagnosticResponse[];
803
+ messageChain?: DiagnosticResponse[] | undefined;
756
804
  /** RelatedInformation contains related diagnostic information, if any. */
757
- relatedInformation?: DiagnosticResponse[];
805
+ relatedInformation?: DiagnosticResponse[] | undefined;
758
806
  }
759
807
  /** PrintNodeParams are the parameters for the printNode method. */
760
808
  export interface PrintNodeParams {
761
809
  /** base64-encoded binary AST data */
762
810
  data: string;
763
- preserveSourceNewlines?: boolean;
764
- neverAsciiEscape?: boolean;
765
- terminateUnterminatedLiterals?: boolean;
811
+ preserveSourceNewlines?: boolean | undefined;
812
+ neverAsciiEscape?: boolean | undefined;
813
+ terminateUnterminatedLiterals?: boolean | undefined;
766
814
  }
767
815
  /** FormatNodeForInsertionParams are the parameters for the formatNodeForInsertion method. */
768
816
  export interface FormatNodeForInsertionParams {
@@ -778,7 +826,7 @@ export interface FormatNodeForInsertionParams {
778
826
  export interface EmitParams {
779
827
  snapshot: number;
780
828
  project: string;
781
- emitOnly?: number;
829
+ emitOnly?: number | undefined;
782
830
  }
783
831
  export interface EmitResponse {
784
832
  emitSkipped: boolean;
@@ -830,13 +878,13 @@ export interface ProfileResult {
830
878
  file: string;
831
879
  }
832
880
  export interface BatchRequest {
833
- method: "batchRequests" | "createProgram" | "emit" | "emitToString" | "formatNodeForInsertion" | "getAliasSymbolOfType" | "getAliasTypeArgumentsOfType" | "getAliasedSymbol" | "getAnyType" | "getApparentPropertiesOfType" | "getApparentType" | "getBaseConstraintOfType" | "getBaseTypeOfLiteralType" | "getBaseTypeOfType" | "getBaseTypes" | "getBigIntType" | "getBindDiagnostics" | "getBooleanType" | "getCheckTypeOfType" | "getCompletionsAtPosition" | "getConfigFileNames" | "getConfigFileParsingDiagnostics" | "getConfigSourceFile" | "getConstantValue" | "getConstraintOfType" | "getConstraintOfTypeParameter" | "getContextualType" | "getDeclarationDiagnostics" | "getDeclarationEmit" | "getDeclaredTypeOfSymbol" | "getDefaultFromTypeParameter" | "getDefaultProjectForFile" | "getDocumentationComment" | "getESSymbolType" | "getExportSpecifierLocalTargetSymbol" | "getExportSymbolOfSymbol" | "getExportsOfModule" | "getExportsOfSymbol" | "getExtendsTypeOfType" | "getFalseTypeOfConditionalType" | "getFreshTypeOfType" | "getFullyQualifiedName" | "getGlobalDiagnostics" | "getImmediateAliasedSymbol" | "getImportAdderEdits" | "getIndexInfosOfType" | "getIndexTypeOfType" | "getJavaScriptEmit" | "getJsDocTags" | "getLocalTypeParametersOfType" | "getMemberInModuleExports" | "getMembersOfSymbol" | "getNeverType" | "getNonMissingTypeOfSymbol" | "getNonNullableType" | "getNonPrimitiveType" | "getNullType" | "getNumberType" | "getObjectTypeOfType" | "getOuterTypeParametersOfType" | "getParameterType" | "getParametersOfSignature" | "getParentOfSymbol" | "getProgramDiagnostics" | "getPropertiesOfType" | "getPropertyOfType" | "getReducedType" | "getReferencedSymbolsForNode" | "getReferencesToSymbolInFile" | "getRegularTypeOfType" | "getResolvedSignature" | "getRestTypeOfSignature" | "getReturnTypeOfSignature" | "getSemanticDiagnostics" | "getShorthandAssignmentValueSymbol" | "getSignatureFromDeclaration" | "getSignatureUsages" | "getSignaturesOfType" | "getSourceFile" | "getSourceFileMetadata" | "getSourceFileNames" | "getStringType" | "getSuggestionDiagnostics" | "getSymbolAtLocation" | "getSymbolAtPosition" | "getSymbolOfSourceFile" | "getSymbolOfType" | "getSymbolsAtLocations" | "getSymbolsAtPositions" | "getSymbolsInScope" | "getSymbolsOfSourceFiles" | "getSyntacticDiagnostics" | "getTargetOfSignature" | "getTargetOfType" | "getTargetSymbol" | "getThisParameterOfSignature" | "getTrueTypeOfConditionalType" | "getTypeArguments" | "getTypeAtLocation" | "getTypeAtLocations" | "getTypeAtPosition" | "getTypeFromTypeNode" | "getTypeOfSymbol" | "getTypeOfSymbolAtLocation" | "getTypeParameterAtPosition" | "getTypeParametersOfSignature" | "getTypeParametersOfType" | "getTypePredicateOfSignature" | "getTypesAtPositions" | "getTypesOfSymbols" | "getTypesOfType" | "getUndefinedType" | "getUnknownType" | "getVoidType" | "getWellKnownSignatures" | "getWellKnownSymbols" | "getWidenedType" | "initialize" | "isArrayLikeType" | "isArrayType" | "isContextSensitive" | "isReadonlySymbol" | "isTypeAssignableTo" | "parseCommandLine" | "parseConfigFile" | "parseJsonConfigFileContent" | "printNode" | "readConfigFile" | "release" | "resolveName" | "saveHeapProfile" | "signatureToSignatureDeclaration" | "startCPUProfile" | "stopCPUProfile" | "transpileDeclaration" | "transpileDeclarationFromFile" | "transpileModule" | "transpileModuleFromFile" | "typeToString" | "typeToTypeNode" | "updateSnapshot" | "updateTemporarySnapshot";
834
- params?: unknown;
881
+ method: "batchRequests" | "createProgram" | "emit" | "emitToString" | "formatNodeForInsertion" | "getAliasSymbolOfType" | "getAliasTypeArgumentsOfType" | "getAliasedSymbol" | "getAnyType" | "getApparentPropertiesOfType" | "getApparentType" | "getBaseConstraintOfType" | "getBaseTypeOfLiteralType" | "getBaseTypeOfType" | "getBaseTypes" | "getBigIntType" | "getBindDiagnostics" | "getBooleanType" | "getCheckTypeOfType" | "getCompletionsAtPosition" | "getConfigFileNames" | "getConfigFileParsingDiagnostics" | "getConfigSourceFile" | "getConstantValue" | "getConstraintOfType" | "getConstraintOfTypeParameter" | "getContextualType" | "getDeclarationDiagnostics" | "getDeclarationEmit" | "getDeclaredTypeOfSymbol" | "getDefaultFromTypeParameter" | "getDefaultProjectForFile" | "getDocumentationComment" | "getESSymbolType" | "getExportSpecifierLocalTargetSymbol" | "getExportSymbolOfSymbol" | "getExportsOfModule" | "getExportsOfSymbol" | "getExtendsTypeOfType" | "getFalseTypeOfConditionalType" | "getFreshTypeOfType" | "getFullyQualifiedName" | "getGlobalDiagnostics" | "getImmediateAliasedSymbol" | "getImportAdderEdits" | "getIndexInfosOfType" | "getIndexTypeOfType" | "getJavaScriptEmit" | "getJsDocTags" | "getLocalTypeParametersOfType" | "getMemberInModuleExports" | "getMembersOfSymbol" | "getNeverType" | "getNonMissingTypeOfSymbol" | "getNonNullableType" | "getNonPrimitiveType" | "getNullType" | "getNumberType" | "getObjectTypeOfType" | "getOuterTypeParametersOfType" | "getParameterType" | "getParametersOfSignature" | "getParentOfSymbol" | "getProgramDiagnostics" | "getPropertiesOfType" | "getPropertyOfType" | "getReducedType" | "getReferencedSymbolsForNode" | "getReferencesToSymbolInFile" | "getRegularTypeOfType" | "getResolvedModule" | "getResolvedModuleFromModuleSpecifier" | "getResolvedSignature" | "getResolvedTypeReferenceDirective" | "getResolvedTypeReferenceDirectiveFromTypeReferenceDirective" | "getRestTypeOfSignature" | "getReturnTypeOfSignature" | "getSemanticDiagnostics" | "getShorthandAssignmentValueSymbol" | "getSignatureFromDeclaration" | "getSignatureUsages" | "getSignaturesOfType" | "getSourceFile" | "getSourceFileMetadata" | "getSourceFileNames" | "getStringType" | "getSuggestionDiagnostics" | "getSymbolAtLocation" | "getSymbolAtPosition" | "getSymbolOfSourceFile" | "getSymbolOfType" | "getSymbolsAtLocations" | "getSymbolsAtPositions" | "getSymbolsInScope" | "getSymbolsOfSourceFiles" | "getSyntacticDiagnostics" | "getTargetOfSignature" | "getTargetOfType" | "getTargetSymbol" | "getThisParameterOfSignature" | "getTrueTypeOfConditionalType" | "getTypeArguments" | "getTypeAtLocation" | "getTypeAtLocations" | "getTypeAtPosition" | "getTypeFromTypeNode" | "getTypeOfSymbol" | "getTypeOfSymbolAtLocation" | "getTypeParameterAtPosition" | "getTypeParametersOfSignature" | "getTypeParametersOfType" | "getTypePredicateOfSignature" | "getTypesAtPositions" | "getTypesOfSymbols" | "getTypesOfType" | "getUndefinedType" | "getUnknownType" | "getVoidType" | "getWellKnownSignatures" | "getWellKnownSymbols" | "getWidenedType" | "initialize" | "isArrayLikeType" | "isArrayType" | "isContextSensitive" | "isReadonlySymbol" | "isTypeAssignableTo" | "parseCommandLine" | "parseConfigFile" | "parseJsonConfigFileContent" | "printNode" | "readConfigFile" | "release" | "resolveName" | "saveHeapProfile" | "signatureToSignatureDeclaration" | "startCPUProfile" | "stopCPUProfile" | "transpileDeclaration" | "transpileDeclarationFromFile" | "transpileModule" | "transpileModuleFromFile" | "typeToString" | "typeToTypeNode" | "updateSnapshot" | "updateTemporarySnapshot";
882
+ params?: unknown | undefined;
835
883
  }
836
884
  export interface BatchResponse {
837
- method: "batchRequests" | "createProgram" | "emit" | "emitToString" | "formatNodeForInsertion" | "getAliasSymbolOfType" | "getAliasTypeArgumentsOfType" | "getAliasedSymbol" | "getAnyType" | "getApparentPropertiesOfType" | "getApparentType" | "getBaseConstraintOfType" | "getBaseTypeOfLiteralType" | "getBaseTypeOfType" | "getBaseTypes" | "getBigIntType" | "getBindDiagnostics" | "getBooleanType" | "getCheckTypeOfType" | "getCompletionsAtPosition" | "getConfigFileNames" | "getConfigFileParsingDiagnostics" | "getConfigSourceFile" | "getConstantValue" | "getConstraintOfType" | "getConstraintOfTypeParameter" | "getContextualType" | "getDeclarationDiagnostics" | "getDeclarationEmit" | "getDeclaredTypeOfSymbol" | "getDefaultFromTypeParameter" | "getDefaultProjectForFile" | "getDocumentationComment" | "getESSymbolType" | "getExportSpecifierLocalTargetSymbol" | "getExportSymbolOfSymbol" | "getExportsOfModule" | "getExportsOfSymbol" | "getExtendsTypeOfType" | "getFalseTypeOfConditionalType" | "getFreshTypeOfType" | "getFullyQualifiedName" | "getGlobalDiagnostics" | "getImmediateAliasedSymbol" | "getImportAdderEdits" | "getIndexInfosOfType" | "getIndexTypeOfType" | "getJavaScriptEmit" | "getJsDocTags" | "getLocalTypeParametersOfType" | "getMemberInModuleExports" | "getMembersOfSymbol" | "getNeverType" | "getNonMissingTypeOfSymbol" | "getNonNullableType" | "getNonPrimitiveType" | "getNullType" | "getNumberType" | "getObjectTypeOfType" | "getOuterTypeParametersOfType" | "getParameterType" | "getParametersOfSignature" | "getParentOfSymbol" | "getProgramDiagnostics" | "getPropertiesOfType" | "getPropertyOfType" | "getReducedType" | "getReferencedSymbolsForNode" | "getReferencesToSymbolInFile" | "getRegularTypeOfType" | "getResolvedSignature" | "getRestTypeOfSignature" | "getReturnTypeOfSignature" | "getSemanticDiagnostics" | "getShorthandAssignmentValueSymbol" | "getSignatureFromDeclaration" | "getSignatureUsages" | "getSignaturesOfType" | "getSourceFile" | "getSourceFileMetadata" | "getSourceFileNames" | "getStringType" | "getSuggestionDiagnostics" | "getSymbolAtLocation" | "getSymbolAtPosition" | "getSymbolOfSourceFile" | "getSymbolOfType" | "getSymbolsAtLocations" | "getSymbolsAtPositions" | "getSymbolsInScope" | "getSymbolsOfSourceFiles" | "getSyntacticDiagnostics" | "getTargetOfSignature" | "getTargetOfType" | "getTargetSymbol" | "getThisParameterOfSignature" | "getTrueTypeOfConditionalType" | "getTypeArguments" | "getTypeAtLocation" | "getTypeAtLocations" | "getTypeAtPosition" | "getTypeFromTypeNode" | "getTypeOfSymbol" | "getTypeOfSymbolAtLocation" | "getTypeParameterAtPosition" | "getTypeParametersOfSignature" | "getTypeParametersOfType" | "getTypePredicateOfSignature" | "getTypesAtPositions" | "getTypesOfSymbols" | "getTypesOfType" | "getUndefinedType" | "getUnknownType" | "getVoidType" | "getWellKnownSignatures" | "getWellKnownSymbols" | "getWidenedType" | "initialize" | "isArrayLikeType" | "isArrayType" | "isContextSensitive" | "isReadonlySymbol" | "isTypeAssignableTo" | "parseCommandLine" | "parseConfigFile" | "parseJsonConfigFileContent" | "printNode" | "readConfigFile" | "release" | "resolveName" | "saveHeapProfile" | "signatureToSignatureDeclaration" | "startCPUProfile" | "stopCPUProfile" | "transpileDeclaration" | "transpileDeclarationFromFile" | "transpileModule" | "transpileModuleFromFile" | "typeToString" | "typeToTypeNode" | "updateSnapshot" | "updateTemporarySnapshot";
885
+ method: "batchRequests" | "createProgram" | "emit" | "emitToString" | "formatNodeForInsertion" | "getAliasSymbolOfType" | "getAliasTypeArgumentsOfType" | "getAliasedSymbol" | "getAnyType" | "getApparentPropertiesOfType" | "getApparentType" | "getBaseConstraintOfType" | "getBaseTypeOfLiteralType" | "getBaseTypeOfType" | "getBaseTypes" | "getBigIntType" | "getBindDiagnostics" | "getBooleanType" | "getCheckTypeOfType" | "getCompletionsAtPosition" | "getConfigFileNames" | "getConfigFileParsingDiagnostics" | "getConfigSourceFile" | "getConstantValue" | "getConstraintOfType" | "getConstraintOfTypeParameter" | "getContextualType" | "getDeclarationDiagnostics" | "getDeclarationEmit" | "getDeclaredTypeOfSymbol" | "getDefaultFromTypeParameter" | "getDefaultProjectForFile" | "getDocumentationComment" | "getESSymbolType" | "getExportSpecifierLocalTargetSymbol" | "getExportSymbolOfSymbol" | "getExportsOfModule" | "getExportsOfSymbol" | "getExtendsTypeOfType" | "getFalseTypeOfConditionalType" | "getFreshTypeOfType" | "getFullyQualifiedName" | "getGlobalDiagnostics" | "getImmediateAliasedSymbol" | "getImportAdderEdits" | "getIndexInfosOfType" | "getIndexTypeOfType" | "getJavaScriptEmit" | "getJsDocTags" | "getLocalTypeParametersOfType" | "getMemberInModuleExports" | "getMembersOfSymbol" | "getNeverType" | "getNonMissingTypeOfSymbol" | "getNonNullableType" | "getNonPrimitiveType" | "getNullType" | "getNumberType" | "getObjectTypeOfType" | "getOuterTypeParametersOfType" | "getParameterType" | "getParametersOfSignature" | "getParentOfSymbol" | "getProgramDiagnostics" | "getPropertiesOfType" | "getPropertyOfType" | "getReducedType" | "getReferencedSymbolsForNode" | "getReferencesToSymbolInFile" | "getRegularTypeOfType" | "getResolvedModule" | "getResolvedModuleFromModuleSpecifier" | "getResolvedSignature" | "getResolvedTypeReferenceDirective" | "getResolvedTypeReferenceDirectiveFromTypeReferenceDirective" | "getRestTypeOfSignature" | "getReturnTypeOfSignature" | "getSemanticDiagnostics" | "getShorthandAssignmentValueSymbol" | "getSignatureFromDeclaration" | "getSignatureUsages" | "getSignaturesOfType" | "getSourceFile" | "getSourceFileMetadata" | "getSourceFileNames" | "getStringType" | "getSuggestionDiagnostics" | "getSymbolAtLocation" | "getSymbolAtPosition" | "getSymbolOfSourceFile" | "getSymbolOfType" | "getSymbolsAtLocations" | "getSymbolsAtPositions" | "getSymbolsInScope" | "getSymbolsOfSourceFiles" | "getSyntacticDiagnostics" | "getTargetOfSignature" | "getTargetOfType" | "getTargetSymbol" | "getThisParameterOfSignature" | "getTrueTypeOfConditionalType" | "getTypeArguments" | "getTypeAtLocation" | "getTypeAtLocations" | "getTypeAtPosition" | "getTypeFromTypeNode" | "getTypeOfSymbol" | "getTypeOfSymbolAtLocation" | "getTypeParameterAtPosition" | "getTypeParametersOfSignature" | "getTypeParametersOfType" | "getTypePredicateOfSignature" | "getTypesAtPositions" | "getTypesOfSymbols" | "getTypesOfType" | "getUndefinedType" | "getUnknownType" | "getVoidType" | "getWellKnownSignatures" | "getWellKnownSymbols" | "getWidenedType" | "initialize" | "isArrayLikeType" | "isArrayType" | "isContextSensitive" | "isReadonlySymbol" | "isTypeAssignableTo" | "parseCommandLine" | "parseConfigFile" | "parseJsonConfigFileContent" | "printNode" | "readConfigFile" | "release" | "resolveName" | "saveHeapProfile" | "signatureToSignatureDeclaration" | "startCPUProfile" | "stopCPUProfile" | "transpileDeclaration" | "transpileDeclarationFromFile" | "transpileModule" | "transpileModuleFromFile" | "typeToString" | "typeToTypeNode" | "updateSnapshot" | "updateTemporarySnapshot";
838
886
  result: unknown;
839
- error?: string;
887
+ error?: string | undefined;
840
888
  }
841
889
  /**
842
890
  * APIFileChanges describes file changes to apply when updating a snapshot.
@@ -844,10 +892,10 @@ export interface BatchResponse {
844
892
  * list individual documents.
845
893
  */
846
894
  export interface APIFileChanges {
847
- invalidateAll?: boolean;
848
- changed?: DocumentIdentifier[];
849
- created?: DocumentIdentifier[];
850
- deleted?: DocumentIdentifier[];
895
+ invalidateAll?: boolean | undefined;
896
+ changed?: DocumentIdentifier[] | undefined;
897
+ created?: DocumentIdentifier[] | undefined;
898
+ deleted?: DocumentIdentifier[] | undefined;
851
899
  }
852
900
  /**
853
901
  * RequestFileSystem supplies file contents and, optionally, directory listings
@@ -858,14 +906,14 @@ export interface RequestFileSystem {
858
906
  /** Files maps file names to their complete contents. */
859
907
  files: Record<string, string>;
860
908
  /** Directories maps directory names to complete listing results. */
861
- directories?: Record<string, RequestDirectoryEntries>;
909
+ directories?: Record<string, RequestDirectoryEntries> | undefined;
862
910
  /** Symlinks maps link paths to targets in this filesystem or the host filesystem. */
863
- symlinks?: Record<string, RequestSymlink>;
911
+ symlinks?: Record<string, RequestSymlink> | undefined;
864
912
  /**
865
913
  * RemovedPaths lists files or directory trees that must be treated as missing
866
914
  * even when present in an underlying snapshot or host filesystem.
867
915
  */
868
- removedPaths?: string[];
916
+ removedPaths?: string[] | undefined;
869
917
  }
870
918
  /**
871
919
  * SnapshotChanges describes what changed between the previous latest snapshot
@@ -877,126 +925,126 @@ export interface SnapshotChanges {
877
925
  * ChangedProjects maps project handles to the file changes within that project.
878
926
  * Projects not listed here (and not in RemovedProjects) are unchanged.
879
927
  */
880
- changedProjects?: Record<string, ProjectFileChanges | null>;
928
+ changedProjects?: Record<string, ProjectFileChanges | null> | undefined;
881
929
  /**
882
930
  * RemovedProjects lists project handles that were present in the previous
883
931
  * snapshot but absent from the new one.
884
932
  */
885
- removedProjects?: string[];
933
+ removedProjects?: string[] | undefined;
886
934
  }
887
935
  export interface CreateProgramOptions {
888
936
  compilerOptions: CompilerOptions;
889
- projectReferences?: ProjectReference[];
890
- configFileParsingDiagnostics?: DiagnosticResponse[];
937
+ projectReferences?: ProjectReference[] | undefined;
938
+ configFileParsingDiagnostics?: DiagnosticResponse[] | undefined;
891
939
  }
892
940
  export interface CreateProgramOldProgramParams {
893
- snapshot?: number;
894
- project?: string;
941
+ snapshot?: number | undefined;
942
+ project?: string | undefined;
895
943
  }
896
944
  /** CompilerOptions contains the compiler options exposed by the API. */
897
945
  export interface CompilerOptions {
898
- allowJs?: boolean;
899
- allowArbitraryExtensions?: boolean;
900
- allowImportingTsExtensions?: boolean;
901
- allowNonTsExtensions?: boolean;
902
- allowUmdGlobalAccess?: boolean;
903
- allowUnreachableCode?: boolean;
904
- allowUnusedLabels?: boolean;
905
- assumeChangesOnlyAffectDirectDependencies?: boolean;
906
- checkJs?: boolean;
907
- customConditions?: string[];
908
- composite?: boolean;
909
- emitDeclarationOnly?: boolean;
910
- emitBOM?: boolean;
911
- emitDecoratorMetadata?: boolean;
912
- declaration?: boolean;
913
- declarationDir?: string;
914
- declarationMap?: boolean;
915
- deduplicatePackages?: boolean;
916
- disableSizeLimit?: boolean;
917
- disableSourceOfProjectReferenceRedirect?: boolean;
918
- disableSolutionSearching?: boolean;
919
- disableReferencedProjectLoad?: boolean;
920
- erasableSyntaxOnly?: boolean;
921
- exactOptionalPropertyTypes?: boolean;
922
- experimentalDecorators?: boolean;
923
- forceConsistentCasingInFileNames?: boolean;
924
- isolatedModules?: boolean;
925
- isolatedDeclarations?: boolean;
926
- ignoreConfig?: boolean;
927
- ignoreDeprecations?: string;
928
- importHelpers?: boolean;
929
- inlineSourceMap?: boolean;
930
- inlineSources?: boolean;
931
- init?: boolean;
932
- incremental?: boolean;
933
- jsx?: JsxEmit;
934
- jsxFactory?: string;
935
- jsxFragmentFactory?: string;
936
- jsxImportSource?: string;
937
- lib?: string[];
938
- libReplacement?: boolean;
939
- locale?: string;
940
- mapRoot?: string;
941
- module?: ModuleKind;
942
- moduleResolution?: ModuleResolutionKind;
943
- moduleSuffixes?: string[];
944
- moduleDetection?: ModuleDetectionKind;
945
- newLine?: NewLineKind;
946
- noEmit?: boolean;
947
- noCheck?: boolean;
948
- noErrorTruncation?: boolean;
949
- noFallthroughCasesInSwitch?: boolean;
950
- noImplicitAny?: boolean;
951
- noImplicitThis?: boolean;
952
- noImplicitReturns?: boolean;
953
- noEmitHelpers?: boolean;
954
- noLib?: boolean;
955
- noPropertyAccessFromIndexSignature?: boolean;
956
- noUncheckedIndexedAccess?: boolean;
957
- noEmitOnError?: boolean;
958
- noUnusedLocals?: boolean;
959
- noUnusedParameters?: boolean;
960
- noResolve?: boolean;
961
- noImplicitOverride?: boolean;
962
- noUncheckedSideEffectImports?: boolean;
963
- outDir?: string;
964
- paths?: Record<string, string[]>;
965
- preserveConstEnums?: boolean;
966
- preserveSymlinks?: boolean;
967
- project?: string;
968
- resolveJsonModule?: boolean;
969
- resolvePackageJsonExports?: boolean;
970
- resolvePackageJsonImports?: boolean;
971
- removeComments?: boolean;
972
- rewriteRelativeImportExtensions?: boolean;
973
- reactNamespace?: string;
974
- rootDir?: string;
975
- rootDirs?: string[];
976
- skipLibCheck?: boolean;
977
- stableTypeOrdering?: boolean;
978
- strict?: boolean;
979
- strictBindCallApply?: boolean;
980
- strictBuiltinIteratorReturn?: boolean;
981
- strictFunctionTypes?: boolean;
982
- strictNullChecks?: boolean;
983
- strictPropertyInitialization?: boolean;
984
- stripInternal?: boolean;
985
- skipDefaultLibCheck?: boolean;
986
- sourceMap?: boolean;
987
- sourceRoot?: string;
988
- suppressOutputPathCheck?: boolean;
989
- target?: ScriptTarget;
990
- traceResolution?: boolean;
991
- tsBuildInfoFile?: string;
992
- typeRoots?: string[];
993
- types?: string[];
994
- useDefineForClassFields?: boolean;
995
- useUnknownInCatchVariables?: boolean;
996
- verbatimModuleSyntax?: boolean;
997
- maxNodeModuleJsDepth?: number;
946
+ allowJs?: boolean | undefined;
947
+ allowArbitraryExtensions?: boolean | undefined;
948
+ allowImportingTsExtensions?: boolean | undefined;
949
+ allowNonTsExtensions?: boolean | undefined;
950
+ allowUmdGlobalAccess?: boolean | undefined;
951
+ allowUnreachableCode?: boolean | undefined;
952
+ allowUnusedLabels?: boolean | undefined;
953
+ assumeChangesOnlyAffectDirectDependencies?: boolean | undefined;
954
+ checkJs?: boolean | undefined;
955
+ customConditions?: string[] | undefined;
956
+ composite?: boolean | undefined;
957
+ emitDeclarationOnly?: boolean | undefined;
958
+ emitBOM?: boolean | undefined;
959
+ emitDecoratorMetadata?: boolean | undefined;
960
+ declaration?: boolean | undefined;
961
+ declarationDir?: string | undefined;
962
+ declarationMap?: boolean | undefined;
963
+ deduplicatePackages?: boolean | undefined;
964
+ disableSizeLimit?: boolean | undefined;
965
+ disableSourceOfProjectReferenceRedirect?: boolean | undefined;
966
+ disableSolutionSearching?: boolean | undefined;
967
+ disableReferencedProjectLoad?: boolean | undefined;
968
+ erasableSyntaxOnly?: boolean | undefined;
969
+ exactOptionalPropertyTypes?: boolean | undefined;
970
+ experimentalDecorators?: boolean | undefined;
971
+ forceConsistentCasingInFileNames?: boolean | undefined;
972
+ isolatedModules?: boolean | undefined;
973
+ isolatedDeclarations?: boolean | undefined;
974
+ ignoreConfig?: boolean | undefined;
975
+ ignoreDeprecations?: string | undefined;
976
+ importHelpers?: boolean | undefined;
977
+ inlineSourceMap?: boolean | undefined;
978
+ inlineSources?: boolean | undefined;
979
+ init?: boolean | undefined;
980
+ incremental?: boolean | undefined;
981
+ jsx?: JsxEmit | undefined;
982
+ jsxFactory?: string | undefined;
983
+ jsxFragmentFactory?: string | undefined;
984
+ jsxImportSource?: string | undefined;
985
+ lib?: string[] | undefined;
986
+ libReplacement?: boolean | undefined;
987
+ locale?: string | undefined;
988
+ mapRoot?: string | undefined;
989
+ module?: ModuleKind | undefined;
990
+ moduleResolution?: ModuleResolutionKind | undefined;
991
+ moduleSuffixes?: string[] | undefined;
992
+ moduleDetection?: ModuleDetectionKind | undefined;
993
+ newLine?: NewLineKind | undefined;
994
+ noEmit?: boolean | undefined;
995
+ noCheck?: boolean | undefined;
996
+ noErrorTruncation?: boolean | undefined;
997
+ noFallthroughCasesInSwitch?: boolean | undefined;
998
+ noImplicitAny?: boolean | undefined;
999
+ noImplicitThis?: boolean | undefined;
1000
+ noImplicitReturns?: boolean | undefined;
1001
+ noEmitHelpers?: boolean | undefined;
1002
+ noLib?: boolean | undefined;
1003
+ noPropertyAccessFromIndexSignature?: boolean | undefined;
1004
+ noUncheckedIndexedAccess?: boolean | undefined;
1005
+ noEmitOnError?: boolean | undefined;
1006
+ noUnusedLocals?: boolean | undefined;
1007
+ noUnusedParameters?: boolean | undefined;
1008
+ noResolve?: boolean | undefined;
1009
+ noImplicitOverride?: boolean | undefined;
1010
+ noUncheckedSideEffectImports?: boolean | undefined;
1011
+ outDir?: string | undefined;
1012
+ paths?: Record<string, string[]> | undefined;
1013
+ preserveConstEnums?: boolean | undefined;
1014
+ preserveSymlinks?: boolean | undefined;
1015
+ project?: string | undefined;
1016
+ resolveJsonModule?: boolean | undefined;
1017
+ resolvePackageJsonExports?: boolean | undefined;
1018
+ resolvePackageJsonImports?: boolean | undefined;
1019
+ removeComments?: boolean | undefined;
1020
+ rewriteRelativeImportExtensions?: boolean | undefined;
1021
+ reactNamespace?: string | undefined;
1022
+ rootDir?: string | undefined;
1023
+ rootDirs?: string[] | undefined;
1024
+ skipLibCheck?: boolean | undefined;
1025
+ stableTypeOrdering?: boolean | undefined;
1026
+ strict?: boolean | undefined;
1027
+ strictBindCallApply?: boolean | undefined;
1028
+ strictBuiltinIteratorReturn?: boolean | undefined;
1029
+ strictFunctionTypes?: boolean | undefined;
1030
+ strictNullChecks?: boolean | undefined;
1031
+ strictPropertyInitialization?: boolean | undefined;
1032
+ stripInternal?: boolean | undefined;
1033
+ skipDefaultLibCheck?: boolean | undefined;
1034
+ sourceMap?: boolean | undefined;
1035
+ sourceRoot?: string | undefined;
1036
+ suppressOutputPathCheck?: boolean | undefined;
1037
+ target?: ScriptTarget | undefined;
1038
+ traceResolution?: boolean | undefined;
1039
+ tsBuildInfoFile?: string | undefined;
1040
+ typeRoots?: string[] | undefined;
1041
+ types?: string[] | undefined;
1042
+ useDefineForClassFields?: boolean | undefined;
1043
+ useUnknownInCatchVariables?: boolean | undefined;
1044
+ verbatimModuleSyntax?: boolean | undefined;
1045
+ maxNodeModuleJsDepth?: number | undefined;
998
1046
  /** Internal fields */
999
- configFilePath?: string;
1047
+ configFilePath?: string | undefined;
1000
1048
  }
1001
1049
  export interface ProjectReference {
1002
1050
  /** Path is a normalized path on disk. */
@@ -1007,31 +1055,37 @@ export interface ProjectReference {
1007
1055
  circular: boolean;
1008
1056
  }
1009
1057
  export interface TypeAcquisition {
1010
- enable?: boolean;
1011
- include?: string[];
1012
- exclude?: string[];
1013
- disableFilenameBasedTypeAcquisition?: boolean;
1058
+ enable?: boolean | undefined;
1059
+ include?: string[] | undefined;
1060
+ exclude?: string[] | undefined;
1061
+ disableFilenameBasedTypeAcquisition?: boolean | undefined;
1014
1062
  }
1015
1063
  export interface TranspileOptions {
1016
- compilerOptions?: CompilerOptions;
1017
- fileName?: string;
1018
- reportDiagnostics?: boolean;
1064
+ compilerOptions?: CompilerOptions | undefined;
1065
+ fileName?: string | undefined;
1066
+ reportDiagnostics?: boolean | undefined;
1067
+ }
1068
+ export interface PackageId {
1069
+ name: string;
1070
+ subModuleName: string;
1071
+ version: string;
1072
+ peerDependencies: string;
1019
1073
  }
1020
1074
  export interface ImportAdderAction {
1021
1075
  kind: "importSymbol";
1022
- symbol?: number;
1023
- isValidTypeOnlyUseSite?: boolean;
1076
+ symbol?: number | undefined;
1077
+ isValidTypeOnlyUseSite?: boolean | undefined;
1024
1078
  }
1025
1079
  /** CompletionEntryResponse represents a single completion item. */
1026
1080
  export interface CompletionEntryResponse {
1027
1081
  name: string;
1028
- kind?: number;
1029
- sortText?: string;
1030
- insertText?: string;
1031
- filterText?: string;
1032
- detail?: string;
1033
- labelDetails?: CompletionEntryLabelDetailsResponse;
1034
- symbol?: SymbolResponse;
1082
+ kind?: number | undefined;
1083
+ sortText?: string | undefined;
1084
+ insertText?: string | undefined;
1085
+ filterText?: string | undefined;
1086
+ detail?: string | undefined;
1087
+ labelDetails?: CompletionEntryLabelDetailsResponse | undefined;
1088
+ symbol?: SymbolResponse | undefined;
1035
1089
  }
1036
1090
  export interface DiagnosticPositionResponse {
1037
1091
  line: number;
@@ -1044,7 +1098,7 @@ export interface DiagnosticSourceLineResponse {
1044
1098
  export interface EmitOutputFile {
1045
1099
  fileName: string;
1046
1100
  text: string;
1047
- sourceFileName?: string;
1101
+ sourceFileName?: string | undefined;
1048
1102
  }
1049
1103
  /**
1050
1104
  * RequestDirectoryEntries is a cached directory listing. Entry names are
@@ -1065,18 +1119,18 @@ export interface RequestSymlink {
1065
1119
  * Host routes the target through the host filesystem. This is the only way a
1066
1120
  * full filesystem can access paths not supplied in the request filesystem.
1067
1121
  */
1068
- host?: boolean;
1122
+ host?: boolean | undefined;
1069
1123
  }
1070
1124
  /** ProjectFileChanges describes what source files changed within a single project. */
1071
1125
  export interface ProjectFileChanges {
1072
1126
  /** ChangedFiles lists source file paths whose content differs. */
1073
- changedFiles?: string[];
1127
+ changedFiles?: string[] | undefined;
1074
1128
  /** DeletedFiles lists source file paths removed from the project's program. */
1075
- deletedFiles?: string[];
1129
+ deletedFiles?: string[] | undefined;
1076
1130
  }
1077
1131
  /** CompletionEntryLabelDetailsResponse holds additional label display text for a completion entry. */
1078
1132
  export interface CompletionEntryLabelDetailsResponse {
1079
- detail?: string;
1080
- description?: string;
1133
+ detail?: string | undefined;
1134
+ description?: string | undefined;
1081
1135
  }
1082
1136
  //# sourceMappingURL=proto.generated.d.ts.map