UNPKG

@nhost/react

Version:

Nhost React library

15 lines (14 loc) 580 B
import { NhostSession } from '@nhost/nhost-js'; import { default as React, PropsWithChildren } from 'react'; import { NhostClient } from './client'; export declare const NhostReactContext: React.Context<NhostClient>; export interface NhostProviderProps { nhost: NhostClient; initial?: NhostSession; } export declare const NhostProvider: React.FC<PropsWithChildren<NhostProviderProps>>; /** * @deprecated use `NhostProvider` instead */ export declare const NhostReactProvider: React.FC<React.PropsWithChildren<NhostProviderProps>>; //# sourceMappingURL=provider.d.ts.map