facebook / facebook/flow

Flowtype for json files

Open
#6,772 2 comments 3 reactions 0 assignees View on GitHub
feature request
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

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)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.