Skip to content

Web returns undefined for Platform.Version, but it is not optional #52356

@runephilosof-abtion

Description

@runephilosof-abtion

According to the type definition, Platform.Version is always defined and is either a string or a number.

However, in the Web platform it is undefined.

type WebPlatform = {
OS: 'web',
// $FlowFixMe[unsafe-getters-setters]
get Version(): void,
// $FlowFixMe[unsafe-getters-setters]

Please either set it optional or ensure the web version returns a sensible Version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Resolution: PR SubmittedA pull request with a fix has been provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions