fix: types of analytics

This commit is contained in:
EnixCoda 2019-02-18 22:14:45 +08:00
parent 073f8585bd
commit 7b929a0d77
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -1,5 +1,5 @@
import { version } from '../package.json'
import { Middleware } from 'driver/connect.js'
import { Middleware, Method } from 'driver/connect.js'
// TODO: set this through ENV or something else
const LOG_ENDPOINT = 'https://enix.one/gitako/log'
@ -15,7 +15,7 @@ export const withErrorLog: Middleware = function withErrorLog(method, args) {
} catch (error) {
raiseError(error)
}
},
} as any, // TOFIX: not sure how to fix this yet
args,
]
}