From 893cbef14c3ec8666632e48a044da38217d08667 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Mon, 23 Dec 2019 17:15:50 +0000 Subject: [PATCH] Use Pick instead of Partial --- src/scripts/choices.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index 039ccd1..c91013d 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -1449,7 +1449,10 @@ class Choices { } } - _onKeyUp({ target, keyCode }: Partial): void { + _onKeyUp({ + target, + keyCode, + }: Pick): void { const { value } = this.input; const { activeItems } = this._store; const canAddItem = this._canAddItem(activeItems, value);