Skip to content

Commit 2b633b5

Browse files
authored
fix: make domain/client optional (#884)
Fixes a typing bug that makes domain/client required; these should be optional, consistent with other SDKs and the spec. Signed-off-by: Todd Baert <[email protected]>
1 parent cfd23b9 commit 2b633b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react/src/provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ type ClientOrDomain =
77
* An identifier which logically binds clients with providers
88
* @see OpenFeature.setProvider() and overloads.
99
*/
10-
domain: string;
10+
domain?: string;
1111
client?: never;
1212
}
1313
| {
1414
/**
1515
* OpenFeature client to use.
1616
*/
17-
client: Client;
17+
client?: Client;
1818
domain?: never;
1919
};
2020

0 commit comments

Comments
 (0)