@marko/language-tools 2.5.11 → 2.5.12
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 +13 -12
- package/package.json +1 -1
package/marko.internal.d.ts
CHANGED
|
@@ -328,18 +328,19 @@ declare global {
|
|
|
328
328
|
export function attrTagFor<Tag, Path extends readonly string[]>(
|
|
329
329
|
tag: Tag,
|
|
330
330
|
...path: Path
|
|
331
|
-
): <
|
|
332
|
-
|
|
333
|
-
AttrTag
|
|
334
|
-
|
|
335
|
-
?
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
331
|
+
): <
|
|
332
|
+
AttrTag extends [0] extends [1 & Tag]
|
|
333
|
+
? Marko.AttrTag<unknown>
|
|
334
|
+
: Marko.Input<Tag> extends infer Input
|
|
335
|
+
? [0] extends [1 & Input]
|
|
336
|
+
? Marko.AttrTag<unknown>
|
|
337
|
+
: AttrTagValue<Marko.Input<Tag>, Path>
|
|
338
|
+
: Marko.AttrTag<unknown>,
|
|
339
|
+
>(
|
|
340
|
+
attrTags: AttrTag[],
|
|
341
|
+
) => AttrTag extends Marko.AttrTag<infer Input>
|
|
342
|
+
? Marko.AttrTag<Input>
|
|
343
|
+
: any;
|
|
343
344
|
|
|
344
345
|
// TODO: this could be improved.
|
|
345
346
|
// currently falls back to DefaultRenderer too eagerly.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-tools",
|
|
3
3
|
"description": "Marko Language Tools",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.12",
|
|
5
5
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@marko/compiler": "^5.28.4"
|