File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
/**
24
24
* Special configuration type to reset configuration to platform default.
25
+ *
25
26
* @alpha
26
27
*/
27
28
export class ResetValue {
28
29
toJSON ( ) : null {
29
30
return null ;
30
31
}
32
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
33
+ private constructor ( ) { }
34
+ public static getInstance ( ) {
35
+ return new ResetValue ( ) ;
36
+ }
31
37
}
32
38
33
39
/**
34
40
* Special configuration value to reset configuration to platform default.
35
41
*/
36
- export const RESET_VALUE = new ResetValue ( ) ;
42
+ export const RESET_VALUE = ResetValue . getInstance ( ) ;
Original file line number Diff line number Diff line change 1
1
import { Expression } from "../params" ;
2
2
import { ResetValue } from "../common/options" ;
3
3
4
- export { RESET_VALUE , ResetValue } from "../common/options" ;
4
+ export { RESET_VALUE } from "../common/options" ;
5
5
6
6
/**
7
7
* List of all regions supported by Cloud Functions.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import { ParamSpec } from "../params/types";
33
33
import { HttpsOptions } from "./providers/https" ;
34
34
import * as logger from "../logger" ;
35
35
36
- export { RESET_VALUE , ResetValue } from "../common/options" ;
36
+ export { RESET_VALUE } from "../common/options" ;
37
37
38
38
/**
39
39
* List of all regions supported by Cloud Functions v2
You can’t perform that action at this time.
0 commit comments