UNPKG

@connected/react

Version:

The hassle free way to call your server-side code

22 lines 850 B
import React from 'react'; import type { CacheItem, SerializableValue, Newable } from './types.js'; import Lru from './lru.js'; type Props = { maxCacheSize?: number; dataTtl?: number; errorTtl?: number; factory?: <T>(klass: Newable<T>, ...args: any[]) => T; initialCacheData?: { [name: string]: SerializableValue; }; onCacheUpdate?: (key: string, value: SerializableValue) => void; children?: JSX.Element; }; declare function ConnectedProvider({ maxCacheSize, dataTtl, errorTtl, factory, initialCacheData, onCacheUpdate, children, }: Props): React.FunctionComponentElement<React.ProviderProps<{ cache: Lru<CacheItem>; dataTtl: number; errorTtl: number; factory: <T>(klass: Newable<T>, ...args: any[]) => T; }>>; export default ConnectedProvider; //# sourceMappingURL=connected-provider.d.ts.map