UNPKG

phx-react

Version:

PHX REACT

11 lines (10 loc) 417 B
import * as React from 'react'; import { ReactNode } from 'react'; type Suggestion = null | string; type PublishFn = (newSuggestion: Suggestion) => void; type HookShape = [suggestion: Suggestion, setSuggestion: PublishFn]; export declare const SharedAutocompleteContext: ({ children }: { children: ReactNode; }) => React.JSX.Element; export declare const useSharedAutocompleteContext: () => HookShape; export {};