We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6802042 commit d0558f9Copy full SHA for d0558f9
src/github/graphql.ts
@@ -122,12 +122,12 @@ export interface Account extends Actor {
122
123
export function isAccount(x: Actor | Team | Node | undefined | null): x is Account {
124
const asAccount = x as Partial<Account>;
125
- return !!asAccount && !!asAccount?.name && (asAccount?.email !== undefined);
+ return !!asAccount && (asAccount?.name !== undefined) && (asAccount?.email !== undefined);
126
}
127
128
export function isTeam(x: Actor | Team | Node | undefined | null): x is Team {
129
const asTeam = x as Partial<Team>;
130
- return !!asTeam && !!asTeam?.slug;
+ return !!asTeam && (asTeam?.slug !== undefined);
131
132
133
export interface Team {
0 commit comments