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
Linting issue blocking compile #11
Comments
You shouldn't lint your node_modules directory, so this is a problem with your project setup. |
Hi @retallicka , |
In common-interfaces.d.ts. I think that "undefined" is missing : [key: string]: 'deny' | 'allow' | 'dismiss' | undefined;
Or
|
See issue tinesoft#11. Optional interface elements are blocking TypeScript compilation, string or undefined is not assignable to string index type string.
I am using
and couldn't seem to get this to compile.
I get this error on build that blocks compile. Any ideas?
ERROR in node_modules/ngx-cookieconsent/model/common-interfaces.d.ts(35,5): error TS2411: Property 'allow' of type '"allow" | undefined' is not assignable to string index type '"allow" | "deny" | "dismiss"'. node_modules/ngx-cookieconsent/model/common-interfaces.d.ts(36,5): error TS2411: Property 'deny' of type '"deny" | undefined' is not assignable to string index type '"allow" | "deny" | "dismiss"'. node_modules/ngx-cookieconsent/model/common-interfaces.d.ts(37,5): error TS2411: Property 'dismiss' of type '"dismiss" | undefined' is not assignable to string index type '"allow" | "deny" | "dismiss"'.
The text was updated successfully, but these errors were encountered: