@marko/language-tools 2.0.1 → 2.0.3
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/marko.internal.d.ts +23 -7
- package/package.json +4 -4
package/marko.internal.d.ts
CHANGED
|
@@ -321,22 +321,38 @@ declare global {
|
|
|
321
321
|
: never;
|
|
322
322
|
|
|
323
323
|
export interface NativeTagRenderer<Name extends string> {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
324
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
|
|
325
|
+
(): () => <__marko_internal_input extends unknown>(
|
|
326
|
+
input: Marko.NativeTags[Name]["input"] &
|
|
327
|
+
Relate<__marko_internal_input, Marko.NativeTags[Name]["input"]>
|
|
328
|
+
) => ReturnAndScope<
|
|
329
|
+
Scopes<__marko_internal_input>,
|
|
330
|
+
Marko.NativeTags[Name]["return"]
|
|
331
|
+
>;
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
export interface BodyRenderer<Body extends AnyMarkoBody> {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
335
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
|
|
336
|
+
(): () => <__marko_internal_input extends unknown>(
|
|
337
|
+
input: RenderBodyInput<BodyParameters<Body>> &
|
|
338
|
+
Relate<
|
|
339
|
+
__marko_internal_input,
|
|
340
|
+
RenderBodyInput<BodyParameters<Body>>
|
|
341
|
+
>
|
|
342
|
+
) => ReturnAndScope<
|
|
343
|
+
Scopes<__marko_internal_input>,
|
|
344
|
+
BodyReturnType<Body>
|
|
345
|
+
>;
|
|
333
346
|
}
|
|
334
347
|
|
|
335
348
|
export interface BaseRenderer<
|
|
336
349
|
Input extends Record<PropertyKey, unknown>,
|
|
337
350
|
Return = void
|
|
338
351
|
> {
|
|
339
|
-
|
|
352
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
|
|
353
|
+
(): () => <__marko_internal_input extends unknown>(
|
|
354
|
+
input: Input & Relate<__marko_internal_input, Input>
|
|
355
|
+
) => ReturnAndScope<Scopes<__marko_internal_input>, Return>;
|
|
340
356
|
}
|
|
341
357
|
|
|
342
358
|
export interface DefaultRenderer {
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-tools",
|
|
3
3
|
"description": "Marko Language Tools",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/helper-validator-identifier": "^7.19.1",
|
|
8
8
|
"@babel/parser": "^7.21.4",
|
|
9
9
|
"@marko/compiler": "5.27.4",
|
|
10
|
-
"@marko/translator-default": "5.25.
|
|
10
|
+
"@marko/translator-default": "5.25.6",
|
|
11
11
|
"htmljs-parser": "^5.4.3",
|
|
12
12
|
"relative-import-path": "^1.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@babel/code-frame": "^7.21.4",
|
|
16
|
-
"@marko/compiler": "^5.27.
|
|
16
|
+
"@marko/compiler": "^5.27.6",
|
|
17
17
|
"@types/babel__code-frame": "^7.0.3",
|
|
18
18
|
"@types/babel__helper-validator-identifier": "^7.15.0",
|
|
19
19
|
"@typescript/vfs": "^1.4.0",
|
|
20
|
-
"marko": "^5.25.
|
|
20
|
+
"marko": "^5.25.5",
|
|
21
21
|
"mitata": "^0.1.6",
|
|
22
22
|
"tsx": "^3.12.6"
|
|
23
23
|
},
|