From 7ccd8d92762b6e0aa156fd434043aa6082159c81 Mon Sep 17 00:00:00 2001 From: Samuel Meuli Date: Sat, 16 May 2020 20:20:22 +0200 Subject: [PATCH] Fix option keys not being optional Fixes #25 --- src/FontPicker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FontPicker.ts b/src/FontPicker.ts index f6476d6..49988c4 100644 --- a/src/FontPicker.ts +++ b/src/FontPicker.ts @@ -46,7 +46,7 @@ export default class FontPicker { filter = OPTIONS_DEFAULTS.filter, limit = OPTIONS_DEFAULTS.limit, sort = OPTIONS_DEFAULTS.sort, - }: Options, + }: Partial, // eslint-disable-next-line @typescript-eslint/no-empty-function onChange: (font: Font) => void = (): void => {}, ) {