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 2
2
3
3
import type { HighlightResultOption } from './highlightResultOption' ;
4
4
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 = {
4
4
/**
5
5
* Page of search results to retrieve.
6
6
*/
7
- page : number ;
7
+ page ? : number ;
8
8
9
9
/**
10
10
* Number of results (hits).
11
11
*/
12
- nbHits : number ;
12
+ nbHits ? : number ;
13
13
14
14
/**
15
15
* Number of pages of results.
16
16
*/
17
- nbPages : number ;
17
+ nbPages ? : number ;
18
18
19
19
/**
20
20
* Number of hits per page.
21
21
*/
22
- hitsPerPage : number ;
22
+ hitsPerPage ? : number ;
23
23
} ;
Original file line number Diff line number Diff line change 2
2
3
3
import type { SnippetResultOption } from './snippetResultOption' ;
4
4
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 2
2
3
3
import type { HighlightResultOption } from './highlightResultOption' ;
4
4
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 = {
4
4
/**
5
5
* Page of search results to retrieve.
6
6
*/
7
- page : number ;
7
+ page ? : number ;
8
8
9
9
/**
10
10
* Number of results (hits).
11
11
*/
12
- nbHits : number ;
12
+ nbHits ? : number ;
13
13
14
14
/**
15
15
* Number of pages of results.
16
16
*/
17
- nbPages : number ;
17
+ nbPages ? : number ;
18
18
19
19
/**
20
20
* Number of hits per page.
21
21
*/
22
- hitsPerPage : number ;
22
+ hitsPerPage ? : number ;
23
23
} ;
Original file line number Diff line number Diff line change 2
2
3
3
import type { SnippetResultOption } from './snippetResultOption' ;
4
4
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 2
2
3
3
import type { HighlightResultOption } from './highlightResultOption' ;
4
4
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 = {
4
4
/**
5
5
* Page of search results to retrieve.
6
6
*/
7
- page : number ;
7
+ page ? : number ;
8
8
9
9
/**
10
10
* Number of results (hits).
11
11
*/
12
- nbHits : number ;
12
+ nbHits ? : number ;
13
13
14
14
/**
15
15
* Number of pages of results.
16
16
*/
17
- nbPages : number ;
17
+ nbPages ? : number ;
18
18
19
19
/**
20
20
* Number of hits per page.
21
21
*/
22
- hitsPerPage : number ;
22
+ hitsPerPage ? : number ;
23
23
} ;
Original file line number Diff line number Diff line change 2
2
3
3
import type { SnippetResultOption } from './snippetResultOption' ;
4
4
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