flowtyped everything, some functional, safety, and structural changes

This commit is contained in:
41666 2019-03-10 03:18:11 -05:00
parent 6f3eca7a64
commit d2aecb38ca
92 changed files with 17554 additions and 1440 deletions

View file

@ -1,10 +1,12 @@
const Logger = require('../logger')
// @flow
import { Logger } from '../logger'
import { type AppContext } from '../Roleypoly'
class Service {
constructor (ctx) {
export default class Service {
ctx: AppContext
log: Logger
constructor (ctx: AppContext) {
this.ctx = ctx
this.log = new Logger(this.constructor.name)
}
}
module.exports = Service