File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ type Registry = {
25
25
} ;
26
26
27
27
export type Behavior < T extends keyof Registry = keyof Registry > = Pick < Registry , T > ;
28
+ export type Behaviors = Partial < Registry > ;
28
29
29
30
export function autoAnonymousLogin ( ) : Behavior < "autoAnonymousLogin" > {
30
31
return {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { enUs, RegisteredLocale } from "@firebase-ui/translations";
18
18
import type { FirebaseApp } from "firebase/app" ;
19
19
import { Auth , getAuth , getRedirectResult } from "firebase/auth" ;
20
20
import { deepMap , DeepMapStore , map } from "nanostores" ;
21
- import { Behavior , defaultBehaviors } from "./behaviors" ;
21
+ import { Behavior , Behaviors , defaultBehaviors } from "./behaviors" ;
22
22
import type { InitBehavior , RedirectBehavior } from "./behaviors/utils" ;
23
23
import { FirebaseUIState } from "./state" ;
24
24
@@ -36,7 +36,7 @@ export type FirebaseUIConfiguration = {
36
36
state : FirebaseUIState ;
37
37
setState : ( state : FirebaseUIState ) => void ;
38
38
locale : RegisteredLocale ;
39
- behaviors : Behavior ;
39
+ behaviors : Behaviors ;
40
40
} ;
41
41
42
42
export const $config = map < Record < string , DeepMapStore < FirebaseUIConfiguration > > > ( { } ) ;
You can’t perform that action at this time.
0 commit comments