Skip to content

Commit 4d62843

Browse files
committed
single line annotations
1 parent a05dfed commit 4d62843

File tree

1 file changed

+24
-39
lines changed

1 file changed

+24
-39
lines changed

packages/svelte/src/internal/client/operations.js

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,43 @@ import { get_descriptor } from './utils.js';
44
// We cache the Node and Element prototype methods, so that we can avoid doing
55
// expensive prototype chain lookups.
66

7-
/**
8-
* @type {Node}
9-
*/
7+
/** @type {Node} */
108
var node_prototype;
11-
/**
12-
* @type {Element}
13-
*/
9+
10+
/** @type {Element} */
1411
var element_prototype;
15-
/**
16-
* @type {Text}
17-
*/
12+
13+
/** @type {Text} */
1814
var text_prototype;
19-
/**
20-
* @type {Map<any, any>}
21-
*/
15+
16+
/** @type {Map<any, any>} */
2217
var map_prototype;
23-
/**
24-
* @type {typeof Node.prototype.appendChild}
25-
*/
18+
19+
/** @type {typeof Node.prototype.appendChild} */
2620
var append_child_method;
27-
/**
28-
* @type {typeof Node.prototype.cloneNode}
29-
*/
21+
22+
/** @type {typeof Node.prototype.cloneNode} */
3023
var clone_node_method;
31-
/**
32-
* @type {typeof Map.prototype.set}
33-
*/
24+
25+
/** @type {typeof Map.prototype.set} */
3426
var map_set_method;
35-
/**
36-
* @type {typeof Map.prototype.get}
37-
*/
27+
28+
/** @type {typeof Map.prototype.get} */
3829
var map_get_method;
39-
/**
40-
* @type {typeof Map.prototype.delete}
41-
*/
30+
31+
/** @type {typeof Map.prototype.delete} */
4232
var map_delete_method;
43-
/**
44-
* @type {(this: Node) => ChildNode | null}
45-
*/
33+
34+
/** @type {(this: Node) => ChildNode | null} */
4635
var first_child_get;
47-
/**
48-
* @type {(this: Node) => ChildNode | null}
49-
*/
36+
37+
/** @type {(this: Node) => ChildNode | null} */
5038
var next_sibling_get;
51-
/**
52-
* @type {(this: Node, text: string ) => void}
53-
*/
39+
40+
/** @type {(this: Node, text: string ) => void} */
5441
var text_content_set;
5542

56-
/**
57-
* @type {(this: Element, class_name: string) => void}
58-
*/
43+
/** @type {(this: Element, class_name: string) => void} */
5944
var class_name_set;
6045

6146
// export these for reference in the compiled code, making global name deduplication unnecessary

0 commit comments

Comments
 (0)