Skip to content

Commit

Permalink
test: remove non-null assertion in select types test (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored Feb 3, 2022
1 parent b0533b4 commit 9fc6298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/test/typings/select.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ assertType<() => void>(select.requestContentUpdate);
assertType<() => boolean>(select.validate);

// Item properties
const item: SelectItem = select.items![0];
const item: SelectItem = select.items ? select.items[0] : {};
assertType<string | undefined>(item.label);
assertType<string | undefined>(item.value);
assertType<boolean | undefined>(item.disabled);
Expand Down

0 comments on commit 9fc6298

Please sign in to comment.