Skip to content

Commit

Permalink
fix: Types
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and mirceanis committed Sep 7, 2020
1 parent 4b8c3d6 commit c35e452
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/daf-express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface RequestWithAgent extends Request {
export const AgentRouter = (options: {
getAgentForRequest: (req: Request) => Promise<IAgent>
exposedMethods: string[]
}) => {
}): Router => {
const router = Router()
router.use(json())
router.use(async (req: RequestWithAgent, res, next) => {
Expand Down
3 changes: 2 additions & 1 deletion packages/daf-graphql/src/methods/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { IAgentGraphQLMethod } from '../types'
import identityManager from './identity-manager'
import resolver from './resolver'

export const supportedMethods = {
export const supportedMethods: Record<string, IAgentGraphQLMethod> = {
...identityManager,
...resolver,
}

0 comments on commit c35e452

Please sign in to comment.