Я новичок в i18, следующий за машинописным текстом, и я хочу перевести форму antd, используя withNamespaces
export default withNamespaces()(Form.create()(MyComponent));
Это дает мне следующую ошибку:
Argument of type 'ComponentClass<RcBaseFormProps & Pick<any, string | number | symbol>, any>' is not assignable to parameter of type 'ComponentType<WithNamespaces>'.
Type 'ComponentClass<RcBaseFormProps & Pick<any, string | number | symbol>, any>' is not assignable to type 'ComponentClass<WithNamespaces, any>'.
Type 'RcBaseFormProps & Pick<any, string | number | symbol>' is missing the following properties from type 'WithNamespaces': tReady, i18n, t
Как правильно это сделать?Thx.