1
0
mirror of https://github.com/flarum/core.git synced 2025-08-15 12:54:47 +02:00

fix: eliminate JSX.Element from generated typings

Either add JSDoc or TypeScript annotations so that `Mithril.Children` is always returned in favor of `JSX.Element`.
This commit is contained in:
Alexander Skvortsov
2022-03-19 16:04:41 -04:00
parent 6df4101bae
commit c9fdd0753f
104 changed files with 391 additions and 125 deletions

View File

@@ -46,6 +46,9 @@ export default class StatisticsWidget extends DashboardWidget {
return 'StatisticsWidget';
}
/**
* @return {import('mithril').Children}
*/
content() {
const thisPeriod = this.periods[this.selectedPeriod];