@typescript-deploys/pr-build 4.8.0-pr-49481-2 → 4.8.0-pr-49554-2
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.
- package/lib/cs/diagnosticMessages.generated.json +4 -2
- package/lib/de/diagnosticMessages.generated.json +4 -2
- package/lib/dynamicImportCompat.js +25 -0
- package/lib/es/diagnosticMessages.generated.json +4 -2
- package/lib/fr/diagnosticMessages.generated.json +4 -2
- package/lib/it/diagnosticMessages.generated.json +4 -2
- package/lib/ja/diagnosticMessages.generated.json +4 -2
- package/lib/ko/diagnosticMessages.generated.json +4 -2
- package/lib/pl/diagnosticMessages.generated.json +4 -2
- package/lib/pt-br/diagnosticMessages.generated.json +4 -2
- package/lib/ru/diagnosticMessages.generated.json +4 -2
- package/lib/tr/diagnosticMessages.generated.json +4 -2
- package/lib/tsc.js +82 -25
- package/lib/tsserver.js +430 -53
- package/lib/tsserverlibrary.d.ts +11 -3
- package/lib/tsserverlibrary.js +369 -52
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +124 -38
- package/lib/typescriptServices.d.ts +1 -1
- package/lib/typescriptServices.js +124 -38
- package/lib/typingsInstaller.js +96 -27
- package/lib/zh-cn/diagnosticMessages.generated.json +4 -2
- package/lib/zh-tw/diagnosticMessages.generated.json +4 -2
- package/package.json +2 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -425,6 +425,7 @@ declare namespace ts {
|
|
|
425
425
|
JSDocFunctionType = 317,
|
|
426
426
|
JSDocVariadicType = 318,
|
|
427
427
|
JSDocNamepathType = 319,
|
|
428
|
+
JSDoc = 320,
|
|
428
429
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
429
430
|
JSDocComment = 320,
|
|
430
431
|
JSDocText = 321,
|
|
@@ -493,7 +494,6 @@ declare namespace ts {
|
|
|
493
494
|
LastJSDocNode = 347,
|
|
494
495
|
FirstJSDocTagNode = 327,
|
|
495
496
|
LastJSDocTagNode = 347,
|
|
496
|
-
JSDoc = 320
|
|
497
497
|
}
|
|
498
498
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
499
499
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -6980,7 +6980,7 @@ declare namespace ts.server {
|
|
|
6980
6980
|
compressionKind: string;
|
|
6981
6981
|
data: any;
|
|
6982
6982
|
}
|
|
6983
|
-
type
|
|
6983
|
+
type ModuleImportResult = {
|
|
6984
6984
|
module: {};
|
|
6985
6985
|
error: undefined;
|
|
6986
6986
|
} | {
|
|
@@ -6990,6 +6990,8 @@ declare namespace ts.server {
|
|
|
6990
6990
|
message?: string;
|
|
6991
6991
|
};
|
|
6992
6992
|
};
|
|
6993
|
+
/** @deprecated Use {@link ModuleImportResult} instead. */
|
|
6994
|
+
type RequireResult = ModuleImportResult;
|
|
6993
6995
|
interface ServerHost extends System {
|
|
6994
6996
|
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
6995
6997
|
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
@@ -6999,7 +7001,8 @@ declare namespace ts.server {
|
|
|
6999
7001
|
clearImmediate(timeoutId: any): void;
|
|
7000
7002
|
gc?(): void;
|
|
7001
7003
|
trace?(s: string): void;
|
|
7002
|
-
require?(initialPath: string, moduleName: string):
|
|
7004
|
+
require?(initialPath: string, moduleName: string): ModuleImportResult;
|
|
7005
|
+
importServicePlugin?(root: string, moduleName: string): Promise<ModuleImportResult>;
|
|
7003
7006
|
}
|
|
7004
7007
|
}
|
|
7005
7008
|
declare namespace ts.server {
|
|
@@ -10449,6 +10452,8 @@ declare namespace ts.server {
|
|
|
10449
10452
|
/** Tracks projects that we have already sent telemetry for. */
|
|
10450
10453
|
private readonly seenProjects;
|
|
10451
10454
|
private performanceEventHandler?;
|
|
10455
|
+
private pendingPluginEnablements?;
|
|
10456
|
+
private currentPluginEnablementPromise?;
|
|
10452
10457
|
constructor(opts: ProjectServiceOptions);
|
|
10453
10458
|
toPath(fileName: string): Path;
|
|
10454
10459
|
private loadTypesMap;
|
|
@@ -10608,6 +10613,9 @@ declare namespace ts.server {
|
|
|
10608
10613
|
applySafeList(proj: protocol.ExternalProject): NormalizedPath[];
|
|
10609
10614
|
openExternalProject(proj: protocol.ExternalProject): void;
|
|
10610
10615
|
hasDeferredExtension(): boolean;
|
|
10616
|
+
private enableRequestedPluginsAsync;
|
|
10617
|
+
private enableRequestedPluginsWorker;
|
|
10618
|
+
private enableRequestedPluginsForProjectAsync;
|
|
10611
10619
|
configurePlugin(args: protocol.ConfigurePluginRequestArguments): void;
|
|
10612
10620
|
}
|
|
10613
10621
|
export {};
|