Make search option props optional, test optional typings
This commit is contained in:
@@ -22,7 +22,13 @@ export interface ISearchHelper {
|
||||
}
|
||||
|
||||
export interface ISearchOptions {
|
||||
regex: boolean;
|
||||
wholeWord: boolean;
|
||||
caseSensitive: boolean;
|
||||
regex?: boolean;
|
||||
wholeWord?: boolean;
|
||||
caseSensitive?: boolean;
|
||||
}
|
||||
|
||||
export interface ISearchResult {
|
||||
term: string;
|
||||
col: number;
|
||||
row: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user