ripple 0.2.182 → 0.2.183

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is an elegant TypeScript UI framework",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.182",
6
+ "version": "0.2.183",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index-client.js",
9
9
  "main": "src/runtime/index-client.js",
@@ -60,6 +60,7 @@
60
60
  "#client/constants": "./src/internal/client/constants.js",
61
61
  "#server": "./src/runtime/internal/server/types.d.ts",
62
62
  "#compiler": "./src/compiler/types/index.d.ts",
63
+ "#parser": "./src/compiler/types/parse.d.ts",
63
64
  "#public": "./types/index.d.ts"
64
65
  },
65
66
  "dependencies": {
@@ -79,11 +80,12 @@
79
80
  "@types/estree": "^1.0.8",
80
81
  "@types/estree-jsx": "^1.0.5",
81
82
  "@types/node": "^24.3.0",
83
+ "@typescript-eslint/types": "^8.40.0",
82
84
  "typescript": "^5.9.2",
83
85
  "@volar/language-core": "~2.4.23",
84
86
  "vscode-languageserver-types": "^3.17.5"
85
87
  },
86
88
  "peerDependencies": {
87
- "ripple": "0.2.182"
89
+ "ripple": "0.2.183"
88
90
  }
89
91
  }
@@ -1,8 +1,10 @@
1
+ /** @import * as AST from 'estree' */
2
+
1
3
  /**
2
4
  *
3
5
  * @param {string} message
4
6
  * @param {string} filename
5
- * @param {any} node
7
+ * @param {AST.Node} node
6
8
  */
7
9
  export function error(message, filename, node) {
8
10
  let errorMessage = message;
@@ -4,6 +4,7 @@ import type {
4
4
  Mapping as VolarMapping,
5
5
  } from '@volar/language-core';
6
6
  import type { DocumentHighlightKind } from 'vscode-languageserver-types';
7
+ import type { SourceMapMappings } from '@jridgewell/sourcemap-codec';
7
8
 
8
9
  // ============================================================================
9
10
  // Compiler API Exports
@@ -17,7 +18,7 @@ export interface CompileResult {
17
18
  /** The generated JavaScript code with source map */
18
19
  js: {
19
20
  code: string;
20
- map: any;
21
+ map: SourceMapMappings;
21
22
  };
22
23
  /** The generated CSS */
23
24
  css: string;