Commit bb26fd6
authored
fix(dts-generator): detect broken method names and throw error
Writing a method name like
MyModule[SomeEnum.EnumValue] = async function (param) {
in the UI5 source code led to a method name "undefined]" in api.json,
which led to a broken dts file and all kinds of unrelated tsc errors.
While it should have been detected earlier, it does not hurt to check
some names here.1 parent f6116ac commit bb26fd6
File tree
2 files changed
+31
-0
lines changed- packages/dts-generator
- docs
- src/phases
2 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
137 | 166 | | |
138 | 167 | | |
139 | 168 | | |
| |||
882 | 911 | | |
883 | 912 | | |
884 | 913 | | |
| 914 | + | |
885 | 915 | | |
886 | 916 | | |
887 | 917 | | |
| |||
0 commit comments