File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ export interface HttpsOptions extends Omit<GlobalOptions, "region" | "enforceApp
61
61
62
62
/** HTTP functions can override global options and can specify multiple regions to deploy to. */
63
63
region ?:
64
- | SupportedRegion
65
- | string
66
- | Array < SupportedRegion | string >
67
- | Expression < string >
68
- | ResetValue ;
64
+ | SupportedRegion
65
+ | string
66
+ | Array < SupportedRegion | string >
67
+ | Expression < string >
68
+ | ResetValue ;
69
69
70
70
/** If true, allows CORS on requests to this function.
71
71
* If this is a `string` or `RegExp`, allows requests from domains that match the provided value.
@@ -227,8 +227,8 @@ export interface CallableOptions<T = any> extends HttpsOptions {
227
227
*/
228
228
export const isSignedIn =
229
229
( ) =>
230
- ( auth : AuthData | null ) : boolean =>
231
- ! ! auth ;
230
+ ( auth : AuthData | null ) : boolean =>
231
+ ! ! auth ;
232
232
233
233
/**
234
234
* @deprecated
@@ -237,15 +237,15 @@ export const isSignedIn =
237
237
*/
238
238
export const hasClaim =
239
239
( claim : string , value ?: string ) =>
240
- ( auth : AuthData | null ) : boolean => {
241
- if ( ! auth ) {
242
- return false ;
243
- }
244
- if ( ! ( claim in auth . token ) ) {
245
- return false ;
246
- }
247
- return ! value || auth . token [ claim ] === value ;
248
- } ;
240
+ ( auth : AuthData | null ) : boolean => {
241
+ if ( ! auth ) {
242
+ return false ;
243
+ }
244
+ if ( ! ( claim in auth . token ) ) {
245
+ return false ;
246
+ }
247
+ return ! value || auth . token [ claim ] === value ;
248
+ } ;
249
249
250
250
/**
251
251
* Handles HTTPS requests.
You can’t perform that action at this time.
0 commit comments