Skip to content

Commit 9e8496a

Browse files
authored
feat(flipt-web): update types to match flipt-client-js (#1303)
Signed-off-by: Philipp Jardas <[email protected]>
1 parent 6dd71ac commit 9e8496a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './lib/flipt-web-provider';
2+
export * from './lib/models';

libs/providers/flipt-web/src/lib/models.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
export interface FliptWebProviderOptions {
22
url?: string;
33
authentication?: FliptWebProviderAuthentication;
4-
fetcher?: () => Promise<Response>;
4+
fetcher?: FliptFetcher;
5+
}
6+
7+
export type FliptFetcher = (args?: FliptFetcherOptions) => Promise<Response>;
8+
9+
export interface FliptFetcherOptions {
10+
etag?: string;
511
}
612

713
export interface FliptClientTokenAuthentication {

0 commit comments

Comments
 (0)