absolutely massive typescript porting time

This commit is contained in:
41666 2019-06-02 18:58:15 -05:00
parent 01f238f515
commit 30d08a630f
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
159 changed files with 2563 additions and 3861 deletions

View file

@ -1,13 +0,0 @@
// @flow
import RPCClient from '@roleypoly/rpc-client'
const client = new RPCClient({ forceDev: false })
export default client.rpc
export const withCookies = (ctx: any) => {
if (ctx.req != null) {
return client.withCookies(ctx.req.headers.cookie)
} else {
return client.rpc
}
}

View file

@ -0,0 +1,23 @@
// @flow
// import RPCClient from '@roleypoly/rpc-client'
// const client = new RPCClient({ forceDev: false })
// export default client.rpc
// export const withCookies = (ctx: any) => {
// if (ctx.req != null) {
// return client.withCookies(ctx.req.headers.cookie)
// } else {
// return client.rpc
// }
// }
const o = {
getCurrentUser: async (..._: any) => null,
getServerSlug: async (..._: any) => null,
checkAuthChallenge: async (..._: any) => false
}
export default o
export function withCookies () {
return o
}