Flow type annotations for Koa
See original GitHub issueI’d like to use Koa with Flow types and am happy to put in the work and enlist people to help out, I’d just like to check with the maintainers this is a PR you’d consider accepting. What I specifically have in mind is to add Flow types to Koa 2’s public API (ex: annotating the fields of the Koa context object, typing the next()
function) and set up a small build script with https://github.com/flowtype/flow-remove-types/ that strips out the type hints before publishing. End users who don’t use Flow won’t be affected and those who do will get more complete type checking.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Type Annotations | Flow
Adding type annotations is an important part of your interaction with Flow. Flow has a powerful ability to infer the types of your...
Read more >Flow type refine mixed to function - Stack Overflow
My question is, what's the correct way to do a type refinement that this is a function and then allow me to call...
Read more >React PropTypes to Flow codemod - Medium
I'm presenting how to automatically convert your existing codebase using React PropTypes to use more powerful Flow annotations. If you already seen why...
Read more >Koa.js - Quick Guide - Tutorialspoint
A web application framework provides you with a simple API to build websites, web apps, and backends. You need not worry about low...
Read more >@panderalabs/koa-pageable NPM | npm.io
Note: The following examples includes optional flow type annotations for clarity. koa-pageable is a convenient library for managing conversion of user ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
-1 from me, see https://github.com/koajs/koa/issues/556
you can help add koa to flow-typed: https://github.com/flowtype/flow-typed/pull/44