Skip to content

Commit 8348419

Browse files
author
Josh Sirota
committed
Add types for TS
1 parent 3b91d11 commit 8348419

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

types/index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Declaration file for Javascript and Node OpenFeature Split Provider
2+
// Project: http://www.split.io/
3+
4+
import { Provider } from "@openfeature/js-sdk";
5+
6+
export = SplitProvider;
7+
8+
declare module SplitProvider {
9+
export interface SplitProviderOptions {
10+
splitClient: SplitIO.IClient;
11+
}
12+
13+
/**
14+
* OpenFeature Split Provider constructor.
15+
*/
16+
export function OpenFeatureSplitProvider(options: SplitProviderOptions): Provider;
17+
}

0 commit comments

Comments
 (0)