Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
Signed-off-by: William So <[email protected]>
  • Loading branch information
polyipseity committed Jun 6, 2024
1 parent e09cefa commit 9aab66e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sources/require/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function patchContextForTemplater(
}
},
}))
return () => { ret.call() }
return (): void => { ret.call() }
} catch (error) {
ret.call()
throw error
Expand Down
10 changes: 5 additions & 5 deletions sources/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class SettingTab extends AdvancedSettingTab<Settings> {
})
this.postMutate()
},
title: () => i18n.t(pf),
title: (): string => i18n.t(pf),
},
).open()
})
Expand Down Expand Up @@ -281,8 +281,8 @@ export class SettingTab extends AdvancedSettingTab<Settings> {
})
this.postMutate()
},
description: () => i18n.t(`${pf}-edit-description`),
title: () => i18n.t(pf),
description: (): string => i18n.t(`${pf}-edit-description`),
title: (): string => i18n.t(pf),
},
).open()
})
Expand Down Expand Up @@ -359,8 +359,8 @@ export class SettingTab extends AdvancedSettingTab<Settings> {
})
this.postMutate()
},
description: () => i18n.t(`${pf}-edit-description`),
title: () => i18n.t(pf),
description: (): string => i18n.t(`${pf}-edit-description`),
title: (): string => i18n.t(pf),
},
).open()
})
Expand Down

0 comments on commit 9aab66e

Please sign in to comment.