Skip to content

Undefined variable warning #482

@rickysullivan

Description

@rickysullivan

Webstorm throws warnings about unfined variables: "Unresolved variable isEnabled"

const FEATURE_FLAGS = useFeatures();
if (FEATURE_FLAGS.FEATURE_SEND_USER_CODES?.isEnabled) {
    console.log('FEATURE_SEND_USER_CODES is enabled');
}

image

Is there any way to hide it?

I've added // noinspection JSUnresolvedVariable but that's a pain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions