@heymarco/next-auth
Version:
A complete authentication solution for web applications.
12 lines (11 loc) • 422 B
TypeScript
import { default as React } from 'react';
export interface ProviderProps<T> {
value: T;
children?: React.ReactNode;
}
export interface Context<T extends any> {
defaultValue: T;
Provider: (props: ProviderProps<T>) => JSX.Element | null;
}
export declare const createContext: <T extends unknown>(defaultValue: T) => Context<T>;
export declare const useContext: <T extends unknown>(context: Context<T>) => T;