Skip to content

Commit 0453815

Browse files
committed
Update functions-compat for new InstanceFactory
1 parent 045e4b5 commit 0453815

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages-exp/functions-compat/src/register.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import {
2424
Component,
2525
ComponentType,
2626
InstanceFactory,
27-
ComponentContainer
27+
ComponentContainer,
28+
InstanceFactoryOptions
2829
} from '@firebase/component';
2930
import { Functions as FunctionsServiceExp } from '@firebase/functions-exp';
3031

@@ -38,7 +39,7 @@ declare module '@firebase/component' {
3839

3940
const factory: InstanceFactory<'functions-compat'> = (
4041
container: ComponentContainer,
41-
regionOrCustomDomain?: string
42+
{ instanceIdentifier: regionOrCustomDomain }: InstanceFactoryOptions
4243
) => {
4344
// Dependencies
4445
const app = container.getProvider('app-compat').getImmediate();

0 commit comments

Comments
 (0)