本地开发没问题打包出现
Type error:类型错误
export declare function useControlModel({ value, onChange, id }: WithControlPropsType, model?: T): ControlModelType;
export declare function useControlModel<const T extends readonly string[]> ({ value, onChange, id }: WithControlPropsType, model ?: T): {
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
本地开发没问题打包出现 Type error:类型错误 export declare function useControlModel({ value, onChange, id }: WithControlPropsType, model?: T): ControlModelType;
export declare function useControlModel<const T extends readonly string[]> ({ value, onChange, id }: WithControlPropsType, model ?: T): {
};
📷 复现步骤
🏞 期望结果
💻 复现代码
© 版本信息
🚑 其他信息