simple-react-validator
simple-react-validator copied to clipboard
IOptions is a type, but not a namespace
ERROR in node_modules/simple-react-validator/src/index.d.ts(52,13):
TS2713: Cannot access 'IOptions.messages' because 'IOptions' is a type, but not a namespace. Did you mean to retrieve the type of the property 'messages' in 'IOptions' with 'IOptions["messages"]'?
TS2713: Cannot access 'IOptions.className' because 'IOptions' is a type, but not a namespace. Did you mean to retrieve the type of the property 'className' in 'IOptions' with 'IOptions["className"]'?
TS2713: Cannot access 'IOptions.autoForceUpdate' because 'IOptions' is a type, but not a namespace. Did you mean to retrieve the type of the property 'autoForceUpdate' in 'IOptions' with 'IOptions["autoForceUpdate"]'?
TS2713: Cannot access 'IOptions.element' because 'IOptions' is a type, but not a namespace. Did you mean to retrieve the type of the property 'element' in 'IOptions' with 'IOptions["element"]'?
Getting the following build errors on versions 1.4.5 & 1.4.6
Looks like it's a simple fix in Index.d.ts:
messages: IOptions["messages"];
className: IOptions["className"];
autoForceUpdate: IOptions["autoForceUpdate"];
element: IOptions["element"];