UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

14 lines (13 loc) 500 B
import type { RefObject } from 'react'; import type { FieldProps, Path } from '../types'; export type UseExternalValueProps<Value> = { path?: Path | undefined; itemPath?: Path; value?: Value; getValueSnapshot?: (value: unknown) => unknown; transformers?: RefObject<{ fromExternal: FieldProps<Value>['fromExternal']; }>; emptyValue?: FieldProps<Value>['emptyValue']; }; export default function useExternalValue<Value>(props: UseExternalValueProps<Value>): unknown;