Skip to content

Credentials fallback causing "Object is possibly 'undefined'" with strict-null-checks enabled #8983

@Chasoor

Description

@Chasoor

Hi, we love using the generator but the follwoing line is causing errors in our angular project (strict-null-checks enabled) since "apiKeys" is possibly undefined. Would be great if "apiKeys" had a null/undefined check with a default same as "credentials" or if the fallback is removed as suggested by the comment. Thank you in advance.

return this.apiKeys['{{name}}'] || this.apiKeys['{{keyParamName}}'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions