You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NbAclRole is defined incorrectly, which in turn causes problems with strict projects. As of now it has an index signature as [permission: string]: string|string[] but it also defines parent?: string which doesn't conform to that signature.
Current behavior:
NbAclRole has an invalid index signature and causes compilation problems when strict mode is enforced.
Expected behavior:
NbAclRole should have a valid signature.
Failed to compile.
node_modules/@nebular/security/security.options.d.ts(3,5): error TS2411: Property 'parent' of type 'string | undefined' is not assignable to string index type 'string | string[]'.
Repro steps:
ng new testproject && cd testproject
npm i @nebular/security
Add strict: true to compilerOptions in /tsconfig.json
Issue type
I'm submitting a ...
Issue description
NbAclRole is defined incorrectly, which in turn causes problems with strict projects. As of now it has an index signature as
[permission: string]: string|string[]
but it also definesparent?: string
which doesn't conform to that signature.Current behavior:
NbAclRole has an invalid index signature and causes compilation problems when strict mode is enforced.
Expected behavior:
NbAclRole should have a valid signature.
Steps to reproduce:
Doesn't apply.
Related code:
Other information:
npm, node, OS, Browser
Angular, Nebular
The text was updated successfully, but these errors were encountered: