Fix linting errors

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-10-16 11:07:09 +02:00
parent 74b0562fc8
commit c017df0a3c
24 changed files with 35 additions and 33 deletions

View file

@ -40,7 +40,7 @@ export class Cache<K, V> {
put(key: K, value: V): void {
if (this.maxEntries > 0 && this.store.size === this.maxEntries) {
this.store.delete(this.store.keys().next().value)
this.store.delete(this.store.keys().next().value as K)
}
this.store.set(key, {
entryCreated: Date.now(),

View file

@ -30,7 +30,7 @@ export const CopyableField: React.FC<CopyableFieldProps> = ({ content, nativeSha
text: content,
url: url
})
.catch((error) => {
.catch((error: Error) => {
log.error('Native sharing failed', error)
})
}, [content, url])