summaryrefslogtreecommitdiff
path: root/source/features/toggle-files-button.tsx
diff options
context:
space:
mode:
authorGravatar Florent <cheap.glitch@gmail.com> 2022-06-12 23:03:24 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-12 23:03:24 +0200
commita7c9dd3a0fe6f6ce22b16c8c4f31c7beefdac4e1 (patch)
tree7f0dca9130484c6cebe13009b973b0f26d84ba14 /source/features/toggle-files-button.tsx
parent3cebeee47a70133161240d0b0871a3de71e6f498 (diff)
downloadrefined-github-a7c9dd3a0fe6f6ce22b16c8c4f31c7beefdac4e1.tar.gz
refined-github-a7c9dd3a0fe6f6ce22b16c8c4f31c7beefdac4e1.tar.zst
refined-github-a7c9dd3a0fe6f6ce22b16c8c4f31c7beefdac4e1.zip
Improve `Deinit` type (#5685)
Diffstat (limited to 'source/features/toggle-files-button.tsx')
-rw-r--r--source/features/toggle-files-button.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/toggle-files-button.tsx b/source/features/toggle-files-button.tsx
index 2c3345cd..d4b583ad 100644
--- a/source/features/toggle-files-button.tsx
+++ b/source/features/toggle-files-button.tsx
@@ -38,7 +38,7 @@ async function toggleHandler(): Promise<void> {
select('.rgh-files-hidden-notice')?.remove();
}
-async function init(): Promise<Deinit[]> {
+async function init(): Promise<Deinit> {
const repoContent = (await elementReady('.repository-content'))!;
if (await cache.get<boolean>(cacheKey)) {