Make search option props optional, test optional typings

This commit is contained in:
Daniel Imms
2018-09-08 02:10:02 -07:00
parent e5465841f8
commit 599271bde4
4 changed files with 33 additions and 27 deletions
+9 -3
View File
@@ -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;
}