-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Interface indexes fail to compile #49
Comments
Hi @V-Roger Thank you for your ticket. Could you please provide a sample code where you use the configuration types? Best regards |
Hi @tinesoft ! I don't actually use the types directly, but the compilation step of my angular app fails with aforementioned errors when using this
However if I switch the |
Hum interesting... I never noticed this before, because i never had the Maybe you can add I will investigate more to understand why the library does not comply with Stay tuned! |
Thank you ! As for why this happens I'm not sure, I'll let you investigate on your side as I'm curious to what you find out. Have a great day ! |
Ok, i found out why you get those nasty errors in It is due to changes introduced in v.2.2.0 to allow having custom properties in config objects. In particular, the part:
in src/model/html-elements.ts and src/model/content-options.ts It should be:
In fact, all fields defined in As says in the documentation:
I'll hotfix this later tonight. Thanks again for reporting! Cheers |
Alright ! Glad you found out where it came from. And thanks again for the quick answer :) Cheers |
Fix released under v2.2.1 Enjoy! |
Bug Report or Feature Request
CookieConsent and Library Versions?
OS Version?
Windows 10
Angular, Node and al Versions?
Repro steps
The log given by the failure
Desired functionality
The compilation step succeeds
Mention any other details that might be useful
The issue is resolved by changing the typescript index to
string | undefined
to account for optional properties in the interfacesThe text was updated successfully, but these errors were encountered: