simple-react-validator icon indicating copy to clipboard operation
simple-react-validator copied to clipboard

IOptions is a type, but not a namespace

Open JamieKCarson opened this issue 4 years ago • 1 comments

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

JamieKCarson avatar Apr 10 '20 05:04 JamieKCarson

Looks like it's a simple fix in Index.d.ts:

 messages: IOptions["messages"];
  className: IOptions["className"];
  autoForceUpdate: IOptions["autoForceUpdate"];
  element: IOptions["element"];

JamieKCarson avatar Apr 10 '20 06:04 JamieKCarson