Skip to content

Commit

Permalink
Export functions type (#28)
Browse files Browse the repository at this point in the history
feat: export func types

Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
  • Loading branch information
KeisukeYamashita authored Apr 14, 2023
1 parent 6e62a2f commit 41864de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/citadelDirective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ export const defaultPublicDirectiveName = "public";
/**
* AuthenticationResolverFunc represents a function that will check user's identity.
*/
type AuthenticationResolverFunc<TContext> = (
export type AuthenticationResolverFunc<TContext> = (
args: resolverFuncArgs<TContext>
) => Promise<boolean>;

/**
* PermissionResolverFunc represents a function that will resolve (return) the user's permissions.
*/
type PermissionResolverFunc<TContext> = (
export type PermissionResolverFunc<TContext> = (
args: resolverFuncArgs<TContext>
) => Promise<string[]>;

Expand Down

0 comments on commit 41864de

Please sign in to comment.