Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS to JSDoc Conversion #8569

Closed
Show file tree
Hide file tree
Changes from 117 commits
Commits
Show all changes
544 commits
Select commit Hold shift + click to select a range
f745d7c
Move src/compiler/compile/render_dom/wrappers/shared/bind_this.ts to …
dummdidumm May 12, 2023
00c69ab
Lint and format src/compiler/compile/render_dom/wrappers/shared/bind_…
dummdidumm May 12, 2023
c01d842
Convert src/compiler/compile/render_dom/wrappers/shared/create_debugg…
dummdidumm May 12, 2023
79bb20a
Move src/compiler/compile/render_dom/wrappers/shared/create_debugging…
dummdidumm May 12, 2023
766165d
Lint and format src/compiler/compile/render_dom/wrappers/shared/creat…
dummdidumm May 12, 2023
6817b87
Convert src/compiler/compile/render_dom/wrappers/shared/get_slot_defi…
dummdidumm May 12, 2023
a72601d
Move src/compiler/compile/render_dom/wrappers/shared/get_slot_definit…
dummdidumm May 12, 2023
a8a7cc6
Lint and format src/compiler/compile/render_dom/wrappers/shared/get_s…
dummdidumm May 12, 2023
bf9caaf
Convert src/compiler/compile/render_dom/wrappers/shared/is_dynamic.ts…
dummdidumm May 12, 2023
4d216b1
Move src/compiler/compile/render_dom/wrappers/shared/is_dynamic.ts to…
dummdidumm May 12, 2023
fda41da
Lint and format src/compiler/compile/render_dom/wrappers/shared/is_dy…
dummdidumm May 12, 2023
bcfff0d
Convert src/compiler/compile/render_dom/wrappers/shared/mark_each_blo…
dummdidumm May 12, 2023
3cc9199
Move src/compiler/compile/render_dom/wrappers/shared/mark_each_block_…
dummdidumm May 12, 2023
f62903c
Lint and format src/compiler/compile/render_dom/wrappers/shared/mark_…
dummdidumm May 12, 2023
f3e323f
Convert src/compiler/compile/render_dom/wrappers/shared/Tag.ts to Jav…
dummdidumm May 12, 2023
cc2372b
Move src/compiler/compile/render_dom/wrappers/shared/Tag.ts to src/co…
dummdidumm May 12, 2023
a6fb5c1
Lint and format src/compiler/compile/render_dom/wrappers/shared/Tag.js
dummdidumm May 12, 2023
f29b356
Convert src/compiler/compile/render_dom/wrappers/shared/Wrapper.ts to…
dummdidumm May 12, 2023
044e48d
Move src/compiler/compile/render_dom/wrappers/shared/Wrapper.ts to sr…
dummdidumm May 12, 2023
9e44fb0
Lint and format src/compiler/compile/render_dom/wrappers/shared/Wrapp…
dummdidumm May 12, 2023
bbec1f1
Convert src/compiler/compile/render_dom/wrappers/AwaitBlock.ts to Jav…
dummdidumm May 12, 2023
cb0d76e
Move src/compiler/compile/render_dom/wrappers/AwaitBlock.ts to src/co…
dummdidumm May 12, 2023
7889024
Lint and format src/compiler/compile/render_dom/wrappers/AwaitBlock.js
dummdidumm May 12, 2023
da1c197
Convert src/compiler/compile/render_dom/wrappers/Body.ts to JavaScript
dummdidumm May 12, 2023
2e79e89
Move src/compiler/compile/render_dom/wrappers/Body.ts to src/compiler…
dummdidumm May 12, 2023
c2fb024
Lint and format src/compiler/compile/render_dom/wrappers/Body.js
dummdidumm May 12, 2023
c388557
Convert src/compiler/compile/render_dom/wrappers/Comment.ts to JavaSc…
dummdidumm May 12, 2023
af79aef
Move src/compiler/compile/render_dom/wrappers/Comment.ts to src/compi…
dummdidumm May 12, 2023
836882c
Lint and format src/compiler/compile/render_dom/wrappers/Comment.js
dummdidumm May 12, 2023
0b9f0b5
Convert src/compiler/compile/render_dom/wrappers/DebugTag.ts to JavaS…
dummdidumm May 12, 2023
01e3d50
Move src/compiler/compile/render_dom/wrappers/DebugTag.ts to src/comp…
dummdidumm May 12, 2023
67ff828
Lint and format src/compiler/compile/render_dom/wrappers/DebugTag.js
dummdidumm May 12, 2023
2864fab
Convert src/compiler/compile/render_dom/wrappers/Document.ts to JavaS…
dummdidumm May 12, 2023
c7b18cc
Move src/compiler/compile/render_dom/wrappers/Document.ts to src/comp…
dummdidumm May 12, 2023
10d178e
Lint and format src/compiler/compile/render_dom/wrappers/Document.js
dummdidumm May 12, 2023
0796a62
Convert src/compiler/compile/render_dom/wrappers/EachBlock.ts to Java…
dummdidumm May 12, 2023
caab2e0
Move src/compiler/compile/render_dom/wrappers/EachBlock.ts to src/com…
dummdidumm May 12, 2023
57f5f5e
Lint and format src/compiler/compile/render_dom/wrappers/EachBlock.js
dummdidumm May 12, 2023
f921b75
Convert src/compiler/compile/render_dom/wrappers/Fragment.ts to JavaS…
dummdidumm May 12, 2023
f7fdec1
Move src/compiler/compile/render_dom/wrappers/Fragment.ts to src/comp…
dummdidumm May 12, 2023
02925da
Lint and format src/compiler/compile/render_dom/wrappers/Fragment.js
dummdidumm May 12, 2023
9c5a97b
Convert src/compiler/compile/render_dom/wrappers/Head.ts to JavaScript
dummdidumm May 12, 2023
732d3b7
Move src/compiler/compile/render_dom/wrappers/Head.ts to src/compiler…
dummdidumm May 12, 2023
05e5b38
Lint and format src/compiler/compile/render_dom/wrappers/Head.js
dummdidumm May 12, 2023
9f5f54f
Convert src/compiler/compile/render_dom/wrappers/IfBlock.ts to JavaSc…
dummdidumm May 12, 2023
03e820f
Move src/compiler/compile/render_dom/wrappers/IfBlock.ts to src/compi…
dummdidumm May 12, 2023
484d6ef
Lint and format src/compiler/compile/render_dom/wrappers/IfBlock.js
dummdidumm May 12, 2023
b4a3e22
Convert src/compiler/compile/render_dom/wrappers/KeyBlock.ts to JavaS…
dummdidumm May 12, 2023
4adbb54
Move src/compiler/compile/render_dom/wrappers/KeyBlock.ts to src/comp…
dummdidumm May 12, 2023
28564df
Lint and format src/compiler/compile/render_dom/wrappers/KeyBlock.js
dummdidumm May 12, 2023
9098136
Convert src/compiler/compile/render_dom/wrappers/MustacheTag.ts to Ja…
dummdidumm May 12, 2023
d6c22fb
Move src/compiler/compile/render_dom/wrappers/MustacheTag.ts to src/c…
dummdidumm May 12, 2023
d772613
Lint and format src/compiler/compile/render_dom/wrappers/MustacheTag.js
dummdidumm May 12, 2023
750855a
Convert src/compiler/compile/render_dom/wrappers/RawMustacheTag.ts to…
dummdidumm May 12, 2023
99f9dea
Move src/compiler/compile/render_dom/wrappers/RawMustacheTag.ts to sr…
dummdidumm May 12, 2023
2bbb789
Lint and format src/compiler/compile/render_dom/wrappers/RawMustacheT…
dummdidumm May 12, 2023
6c15fb9
Convert src/compiler/compile/render_dom/wrappers/Slot.ts to JavaScript
dummdidumm May 12, 2023
6bdbfbb
Move src/compiler/compile/render_dom/wrappers/Slot.ts to src/compiler…
dummdidumm May 12, 2023
fb06ba3
Lint and format src/compiler/compile/render_dom/wrappers/Slot.js
dummdidumm May 12, 2023
9581405
Convert src/compiler/compile/render_dom/wrappers/SlotTemplate.ts to J…
dummdidumm May 12, 2023
61d9a3c
Move src/compiler/compile/render_dom/wrappers/SlotTemplate.ts to src/…
dummdidumm May 12, 2023
a0c7d25
Lint and format src/compiler/compile/render_dom/wrappers/SlotTemplate.js
dummdidumm May 12, 2023
94368af
Convert src/compiler/compile/render_dom/wrappers/Text.ts to JavaScript
dummdidumm May 12, 2023
f4ed955
Move src/compiler/compile/render_dom/wrappers/Text.ts to src/compiler…
dummdidumm May 12, 2023
63dcef5
Lint and format src/compiler/compile/render_dom/wrappers/Text.js
dummdidumm May 12, 2023
2e787e6
Convert src/compiler/compile/render_dom/wrappers/Title.ts to JavaScript
dummdidumm May 12, 2023
c4bbf44
Move src/compiler/compile/render_dom/wrappers/Title.ts to src/compile…
dummdidumm May 12, 2023
711dfa0
Lint and format src/compiler/compile/render_dom/wrappers/Title.js
dummdidumm May 12, 2023
28962d1
Convert src/compiler/compile/render_dom/wrappers/Window.ts to JavaScript
dummdidumm May 12, 2023
9d5492a
Move src/compiler/compile/render_dom/wrappers/Window.ts to src/compil…
dummdidumm May 12, 2023
f241b93
Lint and format src/compiler/compile/render_dom/wrappers/Window.js
dummdidumm May 12, 2023
da35939
Convert src/compiler/compile/render_dom/Block.ts to JavaScript
dummdidumm May 12, 2023
33d95d1
Move src/compiler/compile/render_dom/Block.ts to src/compiler/compile…
dummdidumm May 12, 2023
df3ac56
Lint and format src/compiler/compile/render_dom/Block.js
dummdidumm May 12, 2023
32342c3
Convert src/compiler/compile/render_dom/Renderer.ts to JavaScript
dummdidumm May 12, 2023
539e266
Move src/compiler/compile/render_dom/Renderer.ts to src/compiler/comp…
dummdidumm May 12, 2023
79a8777
Lint and format src/compiler/compile/render_dom/Renderer.js
dummdidumm May 12, 2023
0812f0c
Convert src/compiler/compile/render_dom/invalidate.ts to JavaScript
dummdidumm May 12, 2023
15d7b2b
Move src/compiler/compile/render_dom/invalidate.ts to src/compiler/co…
dummdidumm May 12, 2023
92aef8e
Lint and format src/compiler/compile/render_dom/invalidate.js
dummdidumm May 12, 2023
e8fd149
Convert src/compiler/compile/render_dom/index.ts to JavaScript
dummdidumm May 12, 2023
055ee59
Move src/compiler/compile/render_dom/index.ts to src/compiler/compile…
dummdidumm May 12, 2023
ae3c8ed
Lint and format src/compiler/compile/render_dom/index.js
dummdidumm May 12, 2023
4cb02a5
Convert src/compiler/compile/css/Selector.ts to JavaScript
dummdidumm May 12, 2023
de853c5
Move src/compiler/compile/css/Selector.ts to src/compiler/compile/css…
dummdidumm May 12, 2023
819ca97
Lint and format src/compiler/compile/css/Selector.js
dummdidumm May 12, 2023
d3a4109
Convert src/compiler/compile/css/Stylesheet.ts to JavaScript
dummdidumm May 12, 2023
2059931
Move src/compiler/compile/css/Stylesheet.ts to src/compiler/compile/c…
dummdidumm May 12, 2023
61ca425
Lint and format src/compiler/compile/css/Stylesheet.js
dummdidumm May 12, 2023
d3a1f96
Convert src/compiler/compile/nodes/shared/AbstractBlock.ts to JavaScript
dummdidumm May 12, 2023
becf3ce
Move src/compiler/compile/nodes/shared/AbstractBlock.ts to src/compil…
dummdidumm May 12, 2023
c6fd759
Lint and format src/compiler/compile/nodes/shared/AbstractBlock.js
dummdidumm May 12, 2023
b3aa0fe
Convert src/compiler/compile/nodes/shared/Context.ts to JavaScript
dummdidumm May 12, 2023
e197dcb
Move src/compiler/compile/nodes/shared/Context.ts to src/compiler/com…
dummdidumm May 12, 2023
f78ca01
Lint and format src/compiler/compile/nodes/shared/Context.js
dummdidumm May 12, 2023
8688482
Convert src/compiler/compile/nodes/shared/Expression.ts to JavaScript
dummdidumm May 12, 2023
b0f9d07
Move src/compiler/compile/nodes/shared/Expression.ts to src/compiler/…
dummdidumm May 12, 2023
160cdc9
Lint and format src/compiler/compile/nodes/shared/Expression.js
dummdidumm May 12, 2023
3d81ad7
Convert src/compiler/compile/nodes/shared/get_const_tags.ts to JavaSc…
dummdidumm May 12, 2023
c8c5f2a
Move src/compiler/compile/nodes/shared/get_const_tags.ts to src/compi…
dummdidumm May 12, 2023
58a4034
Lint and format src/compiler/compile/nodes/shared/get_const_tags.js
dummdidumm May 12, 2023
98673c1
Convert src/compiler/compile/nodes/shared/is_contextual.ts to JavaScript
dummdidumm May 12, 2023
cf15a8e
Move src/compiler/compile/nodes/shared/is_contextual.ts to src/compil…
dummdidumm May 12, 2023
67b7e9d
Lint and format src/compiler/compile/nodes/shared/is_contextual.js
dummdidumm May 12, 2023
a5b5ecc
Convert src/compiler/compile/nodes/shared/map_children.ts to JavaScript
dummdidumm May 12, 2023
9886954
Move src/compiler/compile/nodes/shared/map_children.ts to src/compile…
dummdidumm May 12, 2023
ca30dff
Lint and format src/compiler/compile/nodes/shared/map_children.js
dummdidumm May 12, 2023
7ddd050
Convert src/compiler/compile/nodes/shared/Node.ts to JavaScript
dummdidumm May 12, 2023
8e5fb22
Move src/compiler/compile/nodes/shared/Node.ts to src/compiler/compil…
dummdidumm May 12, 2023
c409d1b
Lint and format src/compiler/compile/nodes/shared/Node.js
dummdidumm May 12, 2023
a3e6feb
Convert src/compiler/compile/nodes/shared/Tag.ts to JavaScript
dummdidumm May 12, 2023
32d5f51
Move src/compiler/compile/nodes/shared/Tag.ts to src/compiler/compile…
dummdidumm May 12, 2023
bcf0d2f
Lint and format src/compiler/compile/nodes/shared/Tag.js
dummdidumm May 12, 2023
7bf907e
Convert src/compiler/compile/nodes/shared/TemplateScope.ts to JavaScript
dummdidumm May 12, 2023
b1f5d03
Move src/compiler/compile/nodes/shared/TemplateScope.ts to src/compil…
dummdidumm May 12, 2023
181a23e
Lint and format src/compiler/compile/nodes/shared/TemplateScope.js
dummdidumm May 12, 2023
bb667a7
Convert src/compiler/compile/nodes/Action.ts to JavaScript
dummdidumm May 12, 2023
d6a5adf
Move src/compiler/compile/nodes/Action.ts to src/compiler/compile/nod…
dummdidumm May 12, 2023
8b5185f
Lint and format src/compiler/compile/nodes/Action.js
dummdidumm May 12, 2023
65f298d
Convert src/compiler/compile/nodes/Animation.ts to JavaScript
dummdidumm May 12, 2023
f745d35
Move src/compiler/compile/nodes/Animation.ts to src/compiler/compile/…
dummdidumm May 12, 2023
ba6bc46
Lint and format src/compiler/compile/nodes/Animation.js
dummdidumm May 12, 2023
a534132
Convert src/compiler/compile/nodes/Attribute.ts to JavaScript
dummdidumm May 12, 2023
c0f8129
Move src/compiler/compile/nodes/Attribute.ts to src/compiler/compile/…
dummdidumm May 12, 2023
eb599ce
Lint and format src/compiler/compile/nodes/Attribute.js
dummdidumm May 12, 2023
4e43deb
Convert src/compiler/compile/nodes/AwaitBlock.ts to JavaScript
dummdidumm May 12, 2023
9ffefe1
Move src/compiler/compile/nodes/AwaitBlock.ts to src/compiler/compile…
dummdidumm May 12, 2023
d8f01f4
Lint and format src/compiler/compile/nodes/AwaitBlock.js
dummdidumm May 12, 2023
0e6a27e
Convert src/compiler/compile/nodes/Binding.ts to JavaScript
dummdidumm May 12, 2023
ebef624
Move src/compiler/compile/nodes/Binding.ts to src/compiler/compile/no…
dummdidumm May 12, 2023
1db8111
Lint and format src/compiler/compile/nodes/Binding.js
dummdidumm May 12, 2023
36ab9b3
Convert src/compiler/compile/nodes/Body.ts to JavaScript
dummdidumm May 12, 2023
dfec385
Move src/compiler/compile/nodes/Body.ts to src/compiler/compile/nodes…
dummdidumm May 12, 2023
f176fd1
Lint and format src/compiler/compile/nodes/Body.js
dummdidumm May 12, 2023
e5a9c32
Convert src/compiler/compile/nodes/CatchBlock.ts to JavaScript
dummdidumm May 12, 2023
2ca5e34
Move src/compiler/compile/nodes/CatchBlock.ts to src/compiler/compile…
dummdidumm May 12, 2023
bf77f97
Lint and format src/compiler/compile/nodes/CatchBlock.js
dummdidumm May 12, 2023
01ca153
Convert src/compiler/compile/nodes/Class.ts to JavaScript
dummdidumm May 12, 2023
acfb37e
Move src/compiler/compile/nodes/Class.ts to src/compiler/compile/node…
dummdidumm May 12, 2023
65763cf
Lint and format src/compiler/compile/nodes/Class.js
dummdidumm May 12, 2023
79ac23d
Convert src/compiler/compile/nodes/Comment.ts to JavaScript
dummdidumm May 12, 2023
e7903c7
Move src/compiler/compile/nodes/Comment.ts to src/compiler/compile/no…
dummdidumm May 12, 2023
1b234cc
Lint and format src/compiler/compile/nodes/Comment.js
dummdidumm May 12, 2023
7e269e5
Convert src/compiler/compile/nodes/ConstTag.ts to JavaScript
dummdidumm May 12, 2023
f717ad3
Move src/compiler/compile/nodes/ConstTag.ts to src/compiler/compile/n…
dummdidumm May 12, 2023
2619e54
Lint and format src/compiler/compile/nodes/ConstTag.js
dummdidumm May 12, 2023
a91fec8
Convert src/compiler/compile/nodes/DebugTag.ts to JavaScript
dummdidumm May 12, 2023
88e73ac
Move src/compiler/compile/nodes/DebugTag.ts to src/compiler/compile/n…
dummdidumm May 12, 2023
89d9ab9
Lint and format src/compiler/compile/nodes/DebugTag.js
dummdidumm May 12, 2023
f579850
Convert src/compiler/compile/nodes/Document.ts to JavaScript
dummdidumm May 12, 2023
6cca96b
Move src/compiler/compile/nodes/Document.ts to src/compiler/compile/n…
dummdidumm May 12, 2023
d17043b
Lint and format src/compiler/compile/nodes/Document.js
dummdidumm May 12, 2023
fba5a8d
Convert src/compiler/compile/nodes/EachBlock.ts to JavaScript
dummdidumm May 12, 2023
f9c5d2b
Move src/compiler/compile/nodes/EachBlock.ts to src/compiler/compile/…
dummdidumm May 12, 2023
a8b8024
Lint and format src/compiler/compile/nodes/EachBlock.js
dummdidumm May 12, 2023
14b4999
Convert src/compiler/compile/nodes/Element.ts to JavaScript
dummdidumm May 12, 2023
5ecc611
Move src/compiler/compile/nodes/Element.ts to src/compiler/compile/no…
dummdidumm May 12, 2023
0162418
Lint and format src/compiler/compile/nodes/Element.js
dummdidumm May 12, 2023
cf445f8
Convert src/compiler/compile/nodes/ElseBlock.ts to JavaScript
dummdidumm May 12, 2023
4b1a5c3
Move src/compiler/compile/nodes/ElseBlock.ts to src/compiler/compile/…
dummdidumm May 12, 2023
af4d4e6
Lint and format src/compiler/compile/nodes/ElseBlock.js
dummdidumm May 12, 2023
653230a
Convert src/compiler/compile/nodes/EventHandler.ts to JavaScript
dummdidumm May 12, 2023
511a522
Move src/compiler/compile/nodes/EventHandler.ts to src/compiler/compi…
dummdidumm May 12, 2023
c4681c1
Lint and format src/compiler/compile/nodes/EventHandler.js
dummdidumm May 12, 2023
94ec28c
Convert src/compiler/compile/nodes/Fragment.ts to JavaScript
dummdidumm May 12, 2023
b82432d
Move src/compiler/compile/nodes/Fragment.ts to src/compiler/compile/n…
dummdidumm May 12, 2023
7f3d43e
Lint and format src/compiler/compile/nodes/Fragment.js
dummdidumm May 12, 2023
ba6f050
Convert src/compiler/compile/nodes/Head.ts to JavaScript
dummdidumm May 12, 2023
cfcd7f6
Move src/compiler/compile/nodes/Head.ts to src/compiler/compile/nodes…
dummdidumm May 12, 2023
acc0b54
Lint and format src/compiler/compile/nodes/Head.js
dummdidumm May 12, 2023
e13fac0
Convert src/compiler/compile/nodes/IfBlock.ts to JavaScript
dummdidumm May 12, 2023
ddc465a
Move src/compiler/compile/nodes/IfBlock.ts to src/compiler/compile/no…
dummdidumm May 12, 2023
8bd12c0
Lint and format src/compiler/compile/nodes/IfBlock.js
dummdidumm May 12, 2023
afd4f17
Convert src/compiler/compile/nodes/InlineComponent.ts to JavaScript
dummdidumm May 12, 2023
1c8303f
Move src/compiler/compile/nodes/InlineComponent.ts to src/compiler/co…
dummdidumm May 12, 2023
8160f26
Lint and format src/compiler/compile/nodes/InlineComponent.js
dummdidumm May 12, 2023
e927272
Convert src/compiler/compile/nodes/KeyBlock.ts to JavaScript
dummdidumm May 12, 2023
ab19c27
Move src/compiler/compile/nodes/KeyBlock.ts to src/compiler/compile/n…
dummdidumm May 12, 2023
0db621f
Lint and format src/compiler/compile/nodes/KeyBlock.js
dummdidumm May 12, 2023
18db084
Convert src/compiler/compile/nodes/Let.ts to JavaScript
dummdidumm May 12, 2023
3c46dc9
Move src/compiler/compile/nodes/Let.ts to src/compiler/compile/nodes/…
dummdidumm May 12, 2023
afffc15
Lint and format src/compiler/compile/nodes/Let.js
dummdidumm May 12, 2023
a260bae
Convert src/compiler/compile/nodes/MustacheTag.ts to JavaScript
dummdidumm May 12, 2023
3f594db
Move src/compiler/compile/nodes/MustacheTag.ts to src/compiler/compil…
dummdidumm May 12, 2023
f4d8bc9
Lint and format src/compiler/compile/nodes/MustacheTag.js
dummdidumm May 12, 2023
18a218e
Convert src/compiler/compile/nodes/Options.ts to JavaScript
dummdidumm May 12, 2023
1ee4335
Move src/compiler/compile/nodes/Options.ts to src/compiler/compile/no…
dummdidumm May 12, 2023
6582e56
Lint and format src/compiler/compile/nodes/Options.js
dummdidumm May 12, 2023
46d65a7
Convert src/compiler/compile/nodes/PendingBlock.ts to JavaScript
dummdidumm May 12, 2023
174554d
Move src/compiler/compile/nodes/PendingBlock.ts to src/compiler/compi…
dummdidumm May 12, 2023
825a4a0
Lint and format src/compiler/compile/nodes/PendingBlock.js
dummdidumm May 12, 2023
3370a12
Convert src/compiler/compile/nodes/RawMustacheTag.ts to JavaScript
dummdidumm May 12, 2023
30c761a
Move src/compiler/compile/nodes/RawMustacheTag.ts to src/compiler/com…
dummdidumm May 12, 2023
9c864b9
Lint and format src/compiler/compile/nodes/RawMustacheTag.js
dummdidumm May 12, 2023
812481f
Convert src/compiler/compile/nodes/Slot.ts to JavaScript
dummdidumm May 12, 2023
ba35374
Move src/compiler/compile/nodes/Slot.ts to src/compiler/compile/nodes…
dummdidumm May 12, 2023
1619e1f
Lint and format src/compiler/compile/nodes/Slot.js
dummdidumm May 12, 2023
04f1550
Convert src/compiler/compile/nodes/SlotTemplate.ts to JavaScript
dummdidumm May 12, 2023
c1db5cb
Move src/compiler/compile/nodes/SlotTemplate.ts to src/compiler/compi…
dummdidumm May 12, 2023
ee180c8
Lint and format src/compiler/compile/nodes/SlotTemplate.js
dummdidumm May 12, 2023
9bac1c2
Convert src/compiler/compile/nodes/StyleDirective.ts to JavaScript
dummdidumm May 12, 2023
9f6f971
Move src/compiler/compile/nodes/StyleDirective.ts to src/compiler/com…
dummdidumm May 12, 2023
37d2ae0
Lint and format src/compiler/compile/nodes/StyleDirective.js
dummdidumm May 12, 2023
347b9a5
Convert src/compiler/compile/nodes/Text.ts to JavaScript
dummdidumm May 12, 2023
ba1d9bb
Move src/compiler/compile/nodes/Text.ts to src/compiler/compile/nodes…
dummdidumm May 12, 2023
4da9190
Lint and format src/compiler/compile/nodes/Text.js
dummdidumm May 12, 2023
0655ce1
Convert src/compiler/compile/nodes/ThenBlock.ts to JavaScript
dummdidumm May 12, 2023
7da6241
Move src/compiler/compile/nodes/ThenBlock.ts to src/compiler/compile/…
dummdidumm May 12, 2023
49d8595
Lint and format src/compiler/compile/nodes/ThenBlock.js
dummdidumm May 12, 2023
080945d
Convert src/compiler/compile/nodes/Title.ts to JavaScript
dummdidumm May 12, 2023
4c9129f
Move src/compiler/compile/nodes/Title.ts to src/compiler/compile/node…
dummdidumm May 12, 2023
0ed905e
Lint and format src/compiler/compile/nodes/Title.js
dummdidumm May 12, 2023
d7e2f36
Convert src/compiler/compile/nodes/Transition.ts to JavaScript
dummdidumm May 12, 2023
c973f78
Move src/compiler/compile/nodes/Transition.ts to src/compiler/compile…
dummdidumm May 12, 2023
78fc5b8
Lint and format src/compiler/compile/nodes/Transition.js
dummdidumm May 12, 2023
e02cc33
Convert src/compiler/compile/nodes/Window.ts to JavaScript
dummdidumm May 12, 2023
5eeb37d
Move src/compiler/compile/nodes/Window.ts to src/compiler/compile/nod…
dummdidumm May 12, 2023
9609ea2
Lint and format src/compiler/compile/nodes/Window.js
dummdidumm May 12, 2023
5e3cbe6
Convert src/compiler/compile/compiler_errors.ts to JavaScript
dummdidumm May 12, 2023
bad57f7
Move src/compiler/compile/compiler_errors.ts to src/compiler/compile/…
dummdidumm May 12, 2023
34fbd7b
Lint and format src/compiler/compile/compiler_errors.js
dummdidumm May 12, 2023
7a71271
Convert src/compiler/compile/compiler_warnings.ts to JavaScript
dummdidumm May 12, 2023
ba4b361
Move src/compiler/compile/compiler_warnings.ts to src/compiler/compil…
dummdidumm May 12, 2023
b67a748
Lint and format src/compiler/compile/compiler_warnings.js
dummdidumm May 12, 2023
cf604f6
Convert src/compiler/compile/Component.ts to JavaScript
dummdidumm May 12, 2023
c483366
Move src/compiler/compile/Component.ts to src/compiler/compile/Compon…
dummdidumm May 12, 2023
7e26b45
Lint and format src/compiler/compile/Component.js
dummdidumm May 12, 2023
f9fb687
Convert src/compiler/compile/create_module.ts to JavaScript
dummdidumm May 12, 2023
6357405
Move src/compiler/compile/create_module.ts to src/compiler/compile/cr…
dummdidumm May 12, 2023
f2b42cc
Lint and format src/compiler/compile/create_module.js
dummdidumm May 12, 2023
8585a9f
Convert src/compiler/compile/index.ts to JavaScript
dummdidumm May 12, 2023
6bcd3bd
Move src/compiler/compile/index.ts to src/compiler/compile/index.js
dummdidumm May 12, 2023
17270cc
Lint and format src/compiler/compile/index.js
dummdidumm May 12, 2023
802c45d
Convert src/compiler/Stats.ts to JavaScript
dummdidumm May 12, 2023
f929248
Move src/compiler/Stats.ts to src/compiler/Stats.js
dummdidumm May 12, 2023
764db53
Lint and format src/compiler/Stats.js
dummdidumm May 12, 2023
a5ac4b7
finish
dummdidumm May 12, 2023
c68480d
ugh
dummdidumm May 12, 2023
6ccd20a
type module, mocha config
dummdidumm May 12, 2023
eb41e74
fix a bunch of imports
dummdidumm May 12, 2023
2ae294e
remove instance declarations which override those in base class
dummdidumm May 15, 2023
92c2dd8
merge version-4
dummdidumm May 17, 2023
42b318e
get tests passing, route to unbundled version
dummdidumm May 19, 2023
9d7b1e2
Merge branch 'version-4' into ts-to-jsdoc
dummdidumm May 19, 2023
b832fe6
fix pnpm lock
dummdidumm May 19, 2023
0c84cc1
silence type error
dummdidumm May 19, 2023
a91946a
various fixes
dummdidumm May 19, 2023
129fc25
fix some types, expose preprocess types
dummdidumm May 19, 2023
2f2342d
format
dummdidumm May 19, 2023
68612e1
temporarily rename to ts again
dummdidumm May 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 14 additions & 31 deletions src/runtime/action/index.ts → src/runtime/action/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export {};

// Implementation notes:
// - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode
// - [X] extends [never] is needed, X extends never would reduce the whole resulting type to never and not to one of the condition outcomes

/**
* Actions can return an object containing the two properties defined in this interface. Both are optional.
* - update: An action can have a parameter. This method will be called whenever that parameter changes,
Expand Down Expand Up @@ -25,21 +31,14 @@
* ```
*
* Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action
* @typedef {Object} ActionReturn
* @property {[Parameter] extends [never] ? never : (parameter: Parameter) => void} [update]
* @property {()=>void} [destroy]
* @property {Attributes} [$$_attributes]
* ### DO NOT USE THIS
* This exists solely for type-checking and has no effect at runtime.
* Set this through the `Attributes` generic instead.
*/
export interface ActionReturn<
Parameter = never,
Attributes extends Record<string, any> = Record<never, any>
> {
update?: [Parameter] extends [never] ? never : (parameter: Parameter) => void;
destroy?: () => void;
/**
* ### DO NOT USE THIS
* This exists solely for type-checking and has no effect at runtime.
* Set this through the `Attributes` generic instead.
*/
$$_attributes?: Attributes;
}

/**
* Actions are functions that are called when an element is created.
* You can use this interface to type such actions.
Expand All @@ -56,21 +55,5 @@ export interface ActionReturn<
* See interface `ActionReturn` for more details.
*
* Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action
* @typedef {Object} Action
*/
export interface Action<
Element = HTMLElement,
Parameter = never,
Attributes extends Record<string, any> = Record<never, any>
> {
<Node extends Element>(
...args: [Parameter] extends [never]
? [node: Node]
: undefined extends Parameter
? [node: Node, parameter?: Parameter]
: [node: Node, parameter: Parameter]
): void | ActionReturn<Parameter, Attributes>;
}

// Implementation notes:
// - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode
// - [X] extends [never] is needed, X extends never would reduce the whole resulting type to never and not to one of the condition outcomes
File renamed without changes.
47 changes: 23 additions & 24 deletions src/runtime/animate/index.ts → src/runtime/animate/index.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
import { cubicOut } from '../easing';
import { is_function } from '../internal';

// todo: same as Transition, should it be shared?
export interface AnimationConfig {
delay?: number;
duration?: number;
easing?: (t: number) => number;
css?: (t: number, u: number) => string;
tick?: (t: number, u: number) => void;
}

export interface FlipParams {
delay?: number;
duration?: number | ((len: number) => number);
easing?: (t: number) => number;
}

export function flip(
node: Element,
{ from, to }: { from: DOMRect; to: DOMRect },
params: FlipParams = {}
): AnimationConfig {
/**
* @param {Element} node
* @param {{ from: DOMRect; to: DOMRect }}
* @param {FlipParams} params
* @returns {import("/Users/elliottjohnson/dev/sveltejs/svelte/index.ts-to-jsdoc").AnimationConfig}
*/
export function flip(node, { from, to }, params = {}) {
const style = getComputedStyle(node);
const transform = style.transform === 'none' ? '' : style.transform;

const [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);
const dx = from.left + (from.width * ox) / to.width - (to.left + ox);
const dy = from.top + (from.height * oy) / to.height - (to.top + oy);

const { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;

return {
delay,
duration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,
Expand All @@ -39,8 +23,23 @@ export function flip(
const y = u * dy;
const sx = t + (u * from.width) / to.width;
const sy = t + (u * from.height) / to.height;

return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;
}
};
}

/**
* @typedef {Object} AnimationConfig
* @property {number} [delay]
* @property {number} [duration]
* @property {(t:number)=>number} [easing]
* @property {(t:number,u:number)=>string} [css]
* @property {(t:number,u:number)=>void} [tick]
*/

/**
* @typedef {Object} FlipParams
* @property {number} [delay]
* @property {number|((len:number)=>number)} [duration]
* @property {(t:number)=>number} [easing]
*/
Loading