1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

fix: remove 'typeof' in 'typeof this' from AdminPage#buildSettingComponent params (#3142)

This commit is contained in:
David Sevilla Martin
2021-10-29 18:37:41 -04:00
committed by GitHub
parent 8c3d92c427
commit 70588959eb

View File

@@ -201,7 +201,7 @@ export default abstract class AdminPage<CustomAttrs extends IPageAttrs = IPageAt
* return <p>My cool component</p>;
* }
*/
buildSettingComponent(entry: ((this: typeof this) => Mithril.Children) | SettingsComponentOptions): Mithril.Children {
buildSettingComponent(entry: ((this: this) => Mithril.Children) | SettingsComponentOptions): Mithril.Children {
if (typeof entry === 'function') {
return entry.call(this);
}