Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOptions is a type, but not a namespace #219

Open
JamieKCarson opened this issue Apr 10, 2020 · 1 comment
Open

IOptions is a type, but not a namespace #219

JamieKCarson opened this issue Apr 10, 2020 · 1 comment

Comments

@JamieKCarson
Copy link
Contributor

JamieKCarson commented Apr 10, 2020

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
Copy link
Contributor Author

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

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

@JamieKCarson JamieKCarson changed the title IOtions is a type, but not a namespace IOptions is a type, but not a namespace Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant