acud
Version:
acg react 组件库
9 lines (8 loc) • 375 B
TypeScript
import * as React from 'react';
import { RawValueType, FlattenOptionsType, Key } from '../interface/generator';
export default function useCacheOptions<OptionsType extends {
value?: RawValueType;
label?: React.ReactNode;
key?: Key;
disabled?: boolean;
}[]>(options: FlattenOptionsType<OptionsType>): (vals: RawValueType[]) => FlattenOptionsType<OptionsType>;