Closed
Description
Brief Description
Currently the options parameter of the search
function is of type Partial<SearchOptions>
.
All properties have a default value.
As searchItems
and searchText
are mandatory for the search, they shouldn't be optional.
The options type should be a type with keys
, include
, exact
optional, and searchItems
, searchText
required.
If that's okay, I can make a PR myself.
Environment
@smakss/search
version: 2.0.1node.js
version: v21.7.1npm
version: v10.5.0