Skip to content

Commit f0f9414

Browse files
committed
fix(core): Fix type references
1 parent 27ca8ed commit f0f9414

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/core/src/behaviors/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type Registry = {
2525
};
2626

2727
export type Behavior<T extends keyof Registry = keyof Registry> = Pick<Registry, T>;
28+
export type Behaviors = Partial<Registry>;
2829

2930
export function autoAnonymousLogin(): Behavior<"autoAnonymousLogin"> {
3031
return {

packages/core/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { enUs, RegisteredLocale } from "@firebase-ui/translations";
1818
import type { FirebaseApp } from "firebase/app";
1919
import { Auth, getAuth, getRedirectResult } from "firebase/auth";
2020
import { deepMap, DeepMapStore, map } from "nanostores";
21-
import { Behavior, defaultBehaviors } from "./behaviors";
21+
import { Behavior, Behaviors, defaultBehaviors } from "./behaviors";
2222
import type { InitBehavior, RedirectBehavior } from "./behaviors/utils";
2323
import { FirebaseUIState } from "./state";
2424

@@ -36,7 +36,7 @@ export type FirebaseUIConfiguration = {
3636
state: FirebaseUIState;
3737
setState: (state: FirebaseUIState) => void;
3838
locale: RegisteredLocale;
39-
behaviors: Behavior;
39+
behaviors: Behaviors;
4040
};
4141

4242
export const $config = map<Record<string, DeepMapStore<FirebaseUIConfiguration>>>({});

0 commit comments

Comments
 (0)