Skip to content

Flowtype for json files #6772

@kortina

Description

@kortina

Is there a way to define a flowtype for a json file?

I manage a bunch of configuration files in json, and I would love to be able to define a schema for these files so that I can get warnings in my editor when updating them.

The way I imagine this working is perhaps either mapping *.sometype.json or file.json to a js file containing my type definitions in my ~/.flowconfig

Could you let me know if this is possible out of the box (or if you have ideas on how I might go about hacking this to work)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions