File tree Expand file tree Collapse file tree 9 files changed +18
-42
lines changed Expand file tree Collapse file tree 9 files changed +18
-42
lines changed Original file line number Diff line number Diff line change 22
33import type { HighlightResultOption } from './highlightResultOption' ;
44
5- export type HighlightResult =
6- | HighlightResultOption
7- | HighlightResultOption [ ]
8- | Record < string , HighlightResultOption >
9- | { [ key : string ] : HighlightResult } ;
5+ export type HighlightResult = HighlightResult [ ] | HighlightResultOption | { [ key : string ] : HighlightResult } ;
Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ export type SearchPagination = {
44 /**
55 * Page of search results to retrieve.
66 */
7- page : number ;
7+ page ? : number ;
88
99 /**
1010 * Number of results (hits).
1111 */
12- nbHits : number ;
12+ nbHits ? : number ;
1313
1414 /**
1515 * Number of pages of results.
1616 */
17- nbPages : number ;
17+ nbPages ? : number ;
1818
1919 /**
2020 * Number of hits per page.
2121 */
22- hitsPerPage : number ;
22+ hitsPerPage ? : number ;
2323} ;
Original file line number Diff line number Diff line change 22
33import type { SnippetResultOption } from './snippetResultOption' ;
44
5- export type SnippetResult =
6- | Record < string , SnippetResultOption >
7- | SnippetResultOption
8- | SnippetResultOption [ ]
9- | { [ key : string ] : SnippetResult } ;
5+ export type SnippetResult = SnippetResult [ ] | SnippetResultOption | { [ key : string ] : SnippetResult } ;
Original file line number Diff line number Diff line change 22
33import type { HighlightResultOption } from './highlightResultOption' ;
44
5- export type HighlightResult =
6- | HighlightResultOption
7- | HighlightResultOption [ ]
8- | Record < string , HighlightResultOption >
9- | { [ key : string ] : HighlightResult } ;
5+ export type HighlightResult = HighlightResult [ ] | HighlightResultOption | { [ key : string ] : HighlightResult } ;
Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ export type SearchPagination = {
44 /**
55 * Page of search results to retrieve.
66 */
7- page : number ;
7+ page ? : number ;
88
99 /**
1010 * Number of results (hits).
1111 */
12- nbHits : number ;
12+ nbHits ? : number ;
1313
1414 /**
1515 * Number of pages of results.
1616 */
17- nbPages : number ;
17+ nbPages ? : number ;
1818
1919 /**
2020 * Number of hits per page.
2121 */
22- hitsPerPage : number ;
22+ hitsPerPage ? : number ;
2323} ;
Original file line number Diff line number Diff line change 22
33import type { SnippetResultOption } from './snippetResultOption' ;
44
5- export type SnippetResult =
6- | Record < string , SnippetResultOption >
7- | SnippetResultOption
8- | SnippetResultOption [ ]
9- | { [ key : string ] : SnippetResult } ;
5+ export type SnippetResult = SnippetResult [ ] | SnippetResultOption | { [ key : string ] : SnippetResult } ;
Original file line number Diff line number Diff line change 22
33import type { HighlightResultOption } from './highlightResultOption' ;
44
5- export type HighlightResult =
6- | HighlightResultOption
7- | HighlightResultOption [ ]
8- | Record < string , HighlightResultOption >
9- | { [ key : string ] : HighlightResult } ;
5+ export type HighlightResult = HighlightResult [ ] | HighlightResultOption | { [ key : string ] : HighlightResult } ;
Original file line number Diff line number Diff line change @@ -4,20 +4,20 @@ export type SearchPagination = {
44 /**
55 * Page of search results to retrieve.
66 */
7- page : number ;
7+ page ? : number ;
88
99 /**
1010 * Number of results (hits).
1111 */
12- nbHits : number ;
12+ nbHits ? : number ;
1313
1414 /**
1515 * Number of pages of results.
1616 */
17- nbPages : number ;
17+ nbPages ? : number ;
1818
1919 /**
2020 * Number of hits per page.
2121 */
22- hitsPerPage : number ;
22+ hitsPerPage ? : number ;
2323} ;
Original file line number Diff line number Diff line change 22
33import type { SnippetResultOption } from './snippetResultOption' ;
44
5- export type SnippetResult =
6- | Record < string , SnippetResultOption >
7- | SnippetResultOption
8- | SnippetResultOption [ ]
9- | { [ key : string ] : SnippetResult } ;
5+ export type SnippetResult = SnippetResult [ ] | SnippetResultOption | { [ key : string ] : SnippetResult } ;
You can’t perform that action at this time.
0 commit comments