@typescript-deploys/pr-build 4.7.0-pr-48784-10 → 4.8.0-pr-49091-7
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/AUTHORS.md +1 -0
- package/lib/cs/diagnosticMessages.generated.json +16 -13
- package/lib/de/diagnosticMessages.generated.json +16 -13
- package/lib/es/diagnosticMessages.generated.json +16 -13
- package/lib/fr/diagnosticMessages.generated.json +16 -13
- package/lib/it/diagnosticMessages.generated.json +16 -13
- package/lib/ja/diagnosticMessages.generated.json +16 -13
- package/lib/ko/diagnosticMessages.generated.json +16 -13
- package/lib/lib.es2020.bigint.d.ts +4 -4
- package/lib/lib.es2020.intl.d.ts +29 -5
- package/lib/lib.es2021.intl.d.ts +7 -3
- package/lib/lib.es2022.d.ts +1 -0
- package/lib/lib.es2022.intl.d.ts +111 -0
- package/lib/lib.es5.d.ts +14 -14
- package/lib/lib.esnext.intl.d.ts +5 -1
- package/lib/pl/diagnosticMessages.generated.json +16 -13
- package/lib/pt-br/diagnosticMessages.generated.json +16 -13
- package/lib/ru/diagnosticMessages.generated.json +16 -13
- package/lib/tr/diagnosticMessages.generated.json +16 -13
- package/lib/tsc.js +1050 -1110
- package/lib/tsserver.js +1275 -1244
- package/lib/tsserverlibrary.d.ts +17 -14
- package/lib/tsserverlibrary.js +1275 -1244
- package/lib/typescript.d.ts +17 -14
- package/lib/typescript.js +1260 -1232
- package/lib/typescriptServices.d.ts +17 -14
- package/lib/typescriptServices.js +1260 -1232
- package/lib/typingsInstaller.js +1183 -1183
- package/lib/zh-cn/diagnosticMessages.generated.json +15 -13
- package/lib/zh-tw/diagnosticMessages.generated.json +16 -13
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "4.
|
|
17
|
+
const versionMajorMinor = "4.8";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -1388,8 +1388,9 @@ declare namespace ts {
|
|
|
1388
1388
|
readonly kind: SyntaxKind.JsxAttribute;
|
|
1389
1389
|
readonly parent: JsxAttributes;
|
|
1390
1390
|
readonly name: Identifier;
|
|
1391
|
-
readonly initializer?:
|
|
1391
|
+
readonly initializer?: JsxAttributeValue;
|
|
1392
1392
|
}
|
|
1393
|
+
export type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1393
1394
|
export interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1394
1395
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1395
1396
|
readonly parent: JsxAttributes;
|
|
@@ -2063,7 +2064,7 @@ declare namespace ts {
|
|
|
2063
2064
|
hasNoDefaultLib: boolean;
|
|
2064
2065
|
languageVersion: ScriptTarget;
|
|
2065
2066
|
/**
|
|
2066
|
-
* When `module` is `
|
|
2067
|
+
* When `module` is `Node16` or `NodeNext`, this field controls whether the
|
|
2067
2068
|
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
|
|
2068
2069
|
* module. This is derived by the module resolver as it looks up the file, since
|
|
2069
2070
|
* it is derived from either the file extension of the module, or the containing
|
|
@@ -2893,7 +2894,7 @@ declare namespace ts {
|
|
|
2893
2894
|
export enum ModuleResolutionKind {
|
|
2894
2895
|
Classic = 1,
|
|
2895
2896
|
NodeJs = 2,
|
|
2896
|
-
|
|
2897
|
+
Node16 = 3,
|
|
2897
2898
|
NodeNext = 99
|
|
2898
2899
|
}
|
|
2899
2900
|
export enum ModuleDetectionKind {
|
|
@@ -2902,7 +2903,7 @@ declare namespace ts {
|
|
|
2902
2903
|
*/
|
|
2903
2904
|
Legacy = 1,
|
|
2904
2905
|
/**
|
|
2905
|
-
* Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution:
|
|
2906
|
+
* Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution: node16+
|
|
2906
2907
|
*/
|
|
2907
2908
|
Auto = 2,
|
|
2908
2909
|
/**
|
|
@@ -3074,7 +3075,7 @@ declare namespace ts {
|
|
|
3074
3075
|
ES2020 = 6,
|
|
3075
3076
|
ES2022 = 7,
|
|
3076
3077
|
ESNext = 99,
|
|
3077
|
-
|
|
3078
|
+
Node16 = 100,
|
|
3078
3079
|
NodeNext = 199
|
|
3079
3080
|
}
|
|
3080
3081
|
export enum JsxEmit {
|
|
@@ -3746,8 +3747,8 @@ declare namespace ts {
|
|
|
3746
3747
|
createJsxOpeningFragment(): JsxOpeningFragment;
|
|
3747
3748
|
createJsxJsxClosingFragment(): JsxClosingFragment;
|
|
3748
3749
|
updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
|
|
3749
|
-
createJsxAttribute(name: Identifier, initializer:
|
|
3750
|
-
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer:
|
|
3750
|
+
createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3751
|
+
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3751
3752
|
createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3752
3753
|
updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3753
3754
|
createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
|
|
@@ -4138,7 +4139,7 @@ declare namespace ts {
|
|
|
4138
4139
|
Changed = 1,
|
|
4139
4140
|
Deleted = 2
|
|
4140
4141
|
}
|
|
4141
|
-
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind
|
|
4142
|
+
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
|
|
4142
4143
|
export type DirectoryWatcherCallback = (fileName: string) => void;
|
|
4143
4144
|
export interface System {
|
|
4144
4145
|
args: string[];
|
|
@@ -4510,6 +4511,8 @@ declare namespace ts {
|
|
|
4510
4511
|
function isObjectLiteralElement(node: Node): node is ObjectLiteralElement;
|
|
4511
4512
|
function isStringLiteralLike(node: Node): node is StringLiteralLike;
|
|
4512
4513
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
|
4514
|
+
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
|
4515
|
+
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
|
4513
4516
|
}
|
|
4514
4517
|
declare namespace ts {
|
|
4515
4518
|
const factory: NodeFactory;
|
|
@@ -4818,7 +4821,7 @@ declare namespace ts {
|
|
|
4818
4821
|
/**
|
|
4819
4822
|
* Controls the format the file is detected as - this can be derived from only the path
|
|
4820
4823
|
* and files on disk, but needs to be done with a module resolution cache in scope to be performant.
|
|
4821
|
-
* This is usually `undefined` for compilations that do not have `moduleResolution` values of `
|
|
4824
|
+
* This is usually `undefined` for compilations that do not have `moduleResolution` values of `node16` or `nodenext`.
|
|
4822
4825
|
*/
|
|
4823
4826
|
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
|
|
4824
4827
|
/**
|
|
@@ -6822,7 +6825,7 @@ declare namespace ts {
|
|
|
6822
6825
|
* shape of a the resulting SourceFile. This allows the DocumentRegistry to store
|
|
6823
6826
|
* multiple copies of the same file for different compilation settings. A minimal
|
|
6824
6827
|
* resolution cache is needed to fully define a source file's shape when
|
|
6825
|
-
* the compilation settings include `module:
|
|
6828
|
+
* the compilation settings include `module: node16`+, so providing a cache host
|
|
6826
6829
|
* object should be preferred. A common host is a language service `ConfiguredProject`.
|
|
6827
6830
|
* @param scriptSnapshot Text of the file. Only used if the file was not found
|
|
6828
6831
|
* in the registry and a new one was created.
|
|
@@ -6841,7 +6844,7 @@ declare namespace ts {
|
|
|
6841
6844
|
* shape of a the resulting SourceFile. This allows the DocumentRegistry to store
|
|
6842
6845
|
* multiple copies of the same file for different compilation settings. A minimal
|
|
6843
6846
|
* resolution cache is needed to fully define a source file's shape when
|
|
6844
|
-
* the compilation settings include `module:
|
|
6847
|
+
* the compilation settings include `module: node16`+, so providing a cache host
|
|
6845
6848
|
* object should be preferred. A common host is a language service `ConfiguredProject`.
|
|
6846
6849
|
* @param scriptSnapshot Text of the file.
|
|
6847
6850
|
* @param version Current version of the file.
|
|
@@ -11337,9 +11340,9 @@ declare namespace ts {
|
|
|
11337
11340
|
/** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
|
|
11338
11341
|
const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
|
|
11339
11342
|
/** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
11340
|
-
const createJsxAttribute: (name: Identifier, initializer:
|
|
11343
|
+
const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
11341
11344
|
/** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
11342
|
-
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer:
|
|
11345
|
+
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
11343
11346
|
/** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
11344
11347
|
const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
|
|
11345
11348
|
/** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
|