Lint rules and flow annotations for rest of the files
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// @flow
|
||||
import httpErrors from 'http-errors';
|
||||
|
||||
const apiError = (code, id, message) => {
|
||||
const apiError = (code: number, id: string, message: string) => {
|
||||
return httpErrors(code, message, { id });
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user