Lint rules and flow annotations for rest of the files

This commit is contained in:
Jori Lallo
2017-11-15 22:56:40 -08:00
parent c9b710cbee
commit 0441e92d08
36 changed files with 77 additions and 51 deletions

View File

@ -1,4 +1,8 @@
function present(ctx, key) {
// @flow
import { type Context } from 'koa';
import { ApiKey } from '../models';
function present(ctx: Context, key: ApiKey) {
return {
id: key.id,
name: key.name,