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