File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change
1
+ export type AllowedTypes =
2
+ | 'string'
3
+ | 'integer'
4
+ | 'float'
5
+ | 'boolean'
6
+ | 'datetime'
7
+ | 'string_array'
8
+ | 'integer_array'
9
+ | 'float_array'
10
+ | 'boolean_array'
11
+ | 'datetime_array' ;
12
+
13
+ export type MethodParamsOptions = {
14
+ contextId : string ;
15
+ } ;
Original file line number Diff line number Diff line change 1
1
import { Hyper } from '../hyper' ;
2
-
3
- type allowedTypes =
4
- | 'string'
5
- | 'integer'
6
- | 'float'
7
- | 'boolean'
8
- | 'datetime'
9
- | 'string_array'
10
- | 'integer_array'
11
- | 'float_array'
12
- | 'boolean_array'
13
- | 'datetime_array' ;
14
-
15
- type MethodParamsOptions = {
16
- contextId : string ;
17
- } ;
2
+ import type { AllowedTypes , MethodParamsOptions } from './@types' ;
18
3
19
4
export class Types {
20
5
constructor ( private readonly hyper : Hyper ) { }
@@ -24,7 +9,7 @@ export class Types {
24
9
query,
25
10
contextId,
26
11
} : {
27
- endpointType : allowedTypes ;
12
+ endpointType : AllowedTypes ;
28
13
query : string ;
29
14
contextId ?: string ;
30
15
} ) : Promise < {
You can’t perform that action at this time.
0 commit comments