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:
@@ -46,6 +46,9 @@ export default class StatisticsWidget extends DashboardWidget {
|
||||
return 'StatisticsWidget';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {import('mithril').Children}
|
||||
*/
|
||||
content() {
|
||||
const thisPeriod = this.periods[this.selectedPeriod];
|
||||
|
||||
|
Reference in New Issue
Block a user