@flint.fyi/typescript-language 0.19.0 → 0.20.0

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/dist/index.d.mts CHANGED
@@ -2770,7 +2770,7 @@ declare function declarationIncludesGlobal(declaration: Declaration, program: Pr
2770
2770
  declare const forEachChild: <T>(node: AnyNode, cbNode: (node: AnyNode) => T | undefined, cbNodes?: (nodes: ts.NodeArray<AnyNode>) => T | undefined) => T | undefined;
2771
2771
  //#endregion
2772
2772
  //#region src/utils/getDeclarationsIfGlobal.d.ts
2773
- declare function getDeclarationsIfGlobal(node: Expression, typeChecker: Checker, program: Program): import("typescript").Declaration[] | undefined;
2773
+ declare function getDeclarationsIfGlobal(node: Expression, typeChecker: Checker, program: Program): Declaration[] | undefined;
2774
2774
  //#endregion
2775
2775
  //#region src/utils/getModifyingReferences.d.ts
2776
2776
  /**
@@ -2828,12 +2828,14 @@ declare function isGlobalVariable(node: Expression, typeChecker: Checker, progra
2828
2828
  declare function isInlineArrayCreation(node: ts.Expression): boolean;
2829
2829
  //#endregion
2830
2830
  //#region src/utils/isStaticString.d.ts
2831
- declare function isStaticString(node: Expression): node is NoSubstitutionTemplateLiteral | StringLiteral;
2831
+ type StaticString = NoSubstitutionTemplateLiteral | StringLiteral;
2832
+ declare function isStaticString(node: Expression): node is StaticString;
2832
2833
  //#endregion
2833
2834
  //#region src/utils/isStringRawNoSubstitution.d.ts
2834
- declare function isStringRawNoSubstitution(node: Expression): node is TaggedTemplateExpression & {
2835
+ interface StringRawNoSubstitution extends TaggedTemplateExpression {
2835
2836
  template: NoSubstitutionTemplateLiteral;
2836
- };
2837
+ }
2838
+ declare function isStringRawNoSubstitution(node: Expression): node is StringRawNoSubstitution;
2837
2839
  //#endregion
2838
2840
  //#region src/utils/unwrapParenthesizedNode.d.ts
2839
2841
  declare function unwrapParenthesizedNode(node: AnyNode): AnyNode;
@@ -2841,4 +2843,4 @@ declare function unwrapParenthesizedNode(node: AnyNode): AnyNode;
2841
2843
  //#region src/utils/unwrapParentParenthesizedExpressions.d.ts
2842
2844
  declare function unwrapParentParenthesizedExpressions(node: BinaryExpression | ParenthesizedExpression): LeftHandSideExpressionParent;
2843
2845
  //#endregion
2844
- export { type ast_d_exports as AST, type BuiltInArrayMethodNode, type Checker, type ExtractedDirective, type FunctionWithParameters, NodeSyntaxKinds, type Scope, type ScopeDefinition, type ScopeDefinitionKind, type ScopeManager, type ScopeReference, type ScopeVariable, type StaticValue, type TSDiagnostic, type TypeScriptFileServices, type TypeScriptNodeVisitors, type TypeScriptNodesByName, convertTypeScriptDiagnosticToLanguageReport, createRuleTesterTSConfig, declarationIncludesGlobal, extractDirectivesFromTypeScriptFile, forEachChild, getDeclarationsIfGlobal, getModifyingReferences, getScopeManager, getStaticNumberValue, getStaticStringValue, getStaticValue, getTSNodeRange, hasSameTokens, isBuiltinArrayMethod, isFunction, isGlobalDeclaration, isGlobalDeclarationOfName, isGlobalVariable, isInlineArrayCreation, isStaticString, isStringRawNoSubstitution, setVolarCreateFile, throwUnknownLanguageExtension, typescriptLanguage, unwrapParentParenthesizedExpressions, unwrapParenthesizedNode };
2846
+ export { type ast_d_exports as AST, type BuiltInArrayMethodNode, type Checker, type ExtractedDirective, type FunctionWithParameters, NodeSyntaxKinds, type Scope, type ScopeDefinition, type ScopeDefinitionKind, type ScopeManager, type ScopeReference, type ScopeVariable, type StaticString, type StaticValue, type StringRawNoSubstitution, type TSDiagnostic, type TypeScriptFileServices, type TypeScriptNodeVisitors, type TypeScriptNodesByName, convertTypeScriptDiagnosticToLanguageReport, createRuleTesterTSConfig, declarationIncludesGlobal, extractDirectivesFromTypeScriptFile, forEachChild, getDeclarationsIfGlobal, getModifyingReferences, getScopeManager, getStaticNumberValue, getStaticStringValue, getStaticValue, getTSNodeRange, hasSameTokens, isBuiltinArrayMethod, isFunction, isGlobalDeclaration, isGlobalDeclarationOfName, isGlobalVariable, isInlineArrayCreation, isStaticString, isStringRawNoSubstitution, setVolarCreateFile, throwUnknownLanguageExtension, typescriptLanguage, unwrapParentParenthesizedExpressions, unwrapParenthesizedNode };
package/dist/index.mjs CHANGED
@@ -202,7 +202,7 @@ function getTSNodeRange(node, sourceFile) {
202
202
  //#endregion
203
203
  //#region package.json
204
204
  var name = "@flint.fyi/typescript-language";
205
- var version = "0.19.0";
205
+ var version = "0.20.0";
206
206
  //#endregion
207
207
  //#region src/createTypeScriptServerHost.ts
208
208
  function serverHostMethodNotImplemented(methodName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flint.fyi/typescript-language",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "[Experimental] TypeScript language for Flint.",
5
5
  "homepage": "https://flint.fyi",
6
6
  "repository": {
@@ -28,8 +28,8 @@
28
28
  "pathe": "^2.0.3",
29
29
  "ts-api-utils": "^2.4.0",
30
30
  "typescript": "^5.9.0 || ^6.0.0",
31
- "@flint.fyi/utils": "^0.15.0",
32
- "@flint.fyi/core": "^0.24.0"
31
+ "@flint.fyi/core": "^0.25.0",
32
+ "@flint.fyi/utils": "^0.16.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "tsdown": "0.22.3",
@@ -37,7 +37,7 @@
37
37
  "@flint.fyi/build": "^0.1.0"
38
38
  },
39
39
  "engines": {
40
- "node": ">=24.0.0"
40
+ "node": ">=26.1.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"