@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
12 lines (11 loc) • 414 B
TypeScript
import type { FieldProps, Path } from '../types';
export type UseExternalValueProps<Value> = {
path?: Path | undefined;
itemPath?: Path;
value?: Value;
transformers?: React.RefObject<{
fromExternal: FieldProps<Value>['fromExternal'];
}>;
emptyValue?: FieldProps<Value>['emptyValue'];
};
export default function useExternalValue<Value>(props: UseExternalValueProps<Value>): unknown;