@marko/language-server 2.1.18 → 2.1.20
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/marko.internal.d.ts +19 -13
- package/package.json +2 -2
package/dist/marko.internal.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ declare global {
|
|
|
41
41
|
|
|
42
42
|
export const content: DefaultBodyContentKey;
|
|
43
43
|
|
|
44
|
+
export function el<Name extends string>(
|
|
45
|
+
name: Name,
|
|
46
|
+
): Marko.NativeTags[Name]["return"]["value"];
|
|
47
|
+
|
|
44
48
|
export function contentFor<Name>(
|
|
45
49
|
tag: Name,
|
|
46
50
|
): [0] extends [1 & Name]
|
|
@@ -122,19 +126,21 @@ declare global {
|
|
|
122
126
|
: never
|
|
123
127
|
>;
|
|
124
128
|
|
|
125
|
-
export function
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
export function change<const Item>(...item: Item): UnionToIntersection<
|
|
130
|
+
Item extends
|
|
131
|
+
| readonly [infer LocalName extends string, infer Data]
|
|
132
|
+
| readonly [
|
|
133
|
+
infer LocalName extends string,
|
|
134
|
+
infer SourceName,
|
|
135
|
+
infer Data,
|
|
136
|
+
]
|
|
137
|
+
? Data extends {
|
|
138
|
+
[K in `${SourceName extends string
|
|
139
|
+
? SourceName
|
|
140
|
+
: LocalName}Change`]: (value: infer V, ...args: any[]) => any;
|
|
141
|
+
}
|
|
142
|
+
? { [K in LocalName]: V }
|
|
143
|
+
: { readonly [K in LocalName]: unknown }
|
|
138
144
|
: never
|
|
139
145
|
>;
|
|
140
146
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-server",
|
|
3
3
|
"description": "Marko Language Server",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.20",
|
|
5
5
|
"bin": {
|
|
6
6
|
"marko-language-server": "./bin.js"
|
|
7
7
|
},
|
|
8
8
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@luxass/strip-json-comments": "^1.4.0",
|
|
11
|
-
"@marko/language-tools": "^2.5.
|
|
11
|
+
"@marko/language-tools": "^2.5.46",
|
|
12
12
|
"@marko/compiler": "^5.39.45",
|
|
13
13
|
"htmljs-parser": "^5.7.4",
|
|
14
14
|
"marko": "^5.38.1",
|