Skip to content

Commit

Permalink
Remoe explicit-module-boundary-types exception
Browse files Browse the repository at this point in the history
  • Loading branch information
leonm1 committed Jun 9, 2021
1 parent aa8c269 commit 0f8ae01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ module.exports = {
],
'no-use-before-define': [0],
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/explicit-module-boundary-types': [0],
},
root: true,
overrides: [
Expand Down
4 changes: 2 additions & 2 deletions src/server/resolvers/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AuthenticationError } from 'apollo-server-express';
import { UserType } from '../generated/graphql';
import { UserDbInterface, UserType } from '../generated/graphql';
import Context from '../context';

import { Hacker } from './HackerResolver';
Expand Down Expand Up @@ -37,7 +37,7 @@ export const resolvers: CustomResolvers<Context> = {
Team,
// figures out what type of User is logged in
User: {
__resolveType: user => {
__resolveType: (user: UserDbInterface): 'Hacker' | 'Organizer' | 'Sponsor' | 'Volunteer' => {
switch (user.userType) {
case UserType.Hacker:
return 'Hacker';
Expand Down

0 comments on commit 0f8ae01

Please sign in to comment.