Commit 14abde7
[scoped-custom-element-registry] Port to TypeScript (#561)
* Fix eslintignore sync
* Port to TypeScript
* Some non-type changes
* Apply suggestions from code review
Co-authored-by: Russell Bicknell <[email protected]>
* Add type for form state
* Give explicit types for Maps, Sets, WeakMaps
* Add some comments and readonly markers
* Update deps
* Fix two build issues
Some TypeScripts need resolve explicitly typed, and some closure compiler versions need the `whenDefined` method on our registry ponyfill quoted.
* Add comment about how the main file is a script not a module.
* Minor updates to comments.
---------
Co-authored-by: Russell Bicknell <[email protected]>
Co-authored-by: Peter Burns <[email protected]>1 parent 651e207 commit 14abde7
File tree
10 files changed
+3131
-1644
lines changed- packages/scoped-custom-element-registry
- src
10 files changed
+3131
-1644
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
0 commit comments