typescript 5.0.0-dev.20230111 → 5.0.0-dev.20230113
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/tsc.js +328 -273
- package/lib/tsserver.js +464 -323
- package/lib/tsserverlibrary.d.ts +11 -2
- package/lib/tsserverlibrary.js +464 -324
- package/lib/typescript.d.ts +11 -2
- package/lib/typescript.js +453 -323
- package/lib/typingsInstaller.js +109 -164
- package/package.json +5 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -649,12 +649,16 @@ declare namespace ts {
|
|
|
649
649
|
* Text of identifier, but if the identifier begins with two underscores, this will begin with three.
|
|
650
650
|
*/
|
|
651
651
|
readonly escapedText: __String;
|
|
652
|
-
readonly originalKeywordKind?: SyntaxKind;
|
|
653
|
-
isInJSDocNamespace?: boolean;
|
|
654
652
|
}
|
|
655
653
|
interface Identifier {
|
|
656
654
|
readonly text: string;
|
|
657
655
|
}
|
|
656
|
+
interface Identifier {
|
|
657
|
+
/** @deprecated Use `idKeyword(identifier)` instead. */
|
|
658
|
+
readonly originalKeywordKind?: SyntaxKind;
|
|
659
|
+
/** @deprecated Use `.parent` or the surrounding context to determine this instead. */
|
|
660
|
+
readonly isInJSDocNamespace?: boolean;
|
|
661
|
+
}
|
|
658
662
|
interface TransientIdentifier extends Identifier {
|
|
659
663
|
resolvedSymbol: Symbol;
|
|
660
664
|
}
|
|
@@ -4664,6 +4668,11 @@ declare namespace ts {
|
|
|
4664
4668
|
*/
|
|
4665
4669
|
function unescapeLeadingUnderscores(identifier: __String): string;
|
|
4666
4670
|
function idText(identifierOrPrivateName: Identifier | PrivateIdentifier): string;
|
|
4671
|
+
/**
|
|
4672
|
+
* If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the
|
|
4673
|
+
* SyntaxKind for the matching keyword.
|
|
4674
|
+
*/
|
|
4675
|
+
function identifierToKeywordKind(node: Identifier): KeywordSyntaxKind | undefined;
|
|
4667
4676
|
function symbolName(symbol: Symbol): string;
|
|
4668
4677
|
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined;
|
|
4669
4678
|
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined;
|