Skip to content

Commit

Permalink
fix: remove 'typeof' in 'typeof this' from AdminPage#buildSettingComp…
Browse files Browse the repository at this point in the history
…onent params (#3142)
  • Loading branch information
dsevillamartin authored Oct 29, 2021
1 parent 8c3d92c commit 7058895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/admin/components/AdminPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7058895

Please sign in to comment.