Use Pick instead of Partial

This commit is contained in:
Josh Johnson 2019-12-23 17:15:50 +00:00
parent 1c57a53c73
commit 893cbef14c

View file

@ -1449,7 +1449,10 @@ class Choices {
}
}
_onKeyUp({ target, keyCode }: Partial<KeyboardEvent>): void {
_onKeyUp({
target,
keyCode,
}: Pick<KeyboardEvent, 'target' | 'keyCode'>): void {
const { value } = this.input;
const { activeItems } = this._store;
const canAddItem = this._canAddItem(activeItems, value);