@streamlayer/react 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +8 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,11 @@ interface StreamLayerSDK {
|
|
|
8
8
|
type StreamLayerPlugin = (instance: StreamLayerContext, opts: unknown, done: Function) => void
|
|
9
9
|
type StreamLayerProps = { sdkKey: string; plugins?: Set<StreamLayerPlugin>; production?: boolean }
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
|
|
11
|
+
export interface StreamLayerProvider extends React.FC<StreamLayerProps & { children: React.ReactNode }> {}
|
|
12
|
+
export interface StreamLayerSDKReact extends React.FC {}
|
|
13
|
+
export declare function useStreamLayerApp(
|
|
14
|
+
sdkKey: string,
|
|
15
|
+
plugins?: Set<StreamLayerPlugin>,
|
|
16
|
+
production?: boolean
|
|
17
|
+
): StreamLayerSDK | null
|
|
18
|
+
export declare function useStreamLayer(): StreamLayerSDK | undefined
|