Skip to content

Commit

Permalink
add ts-doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr committed Nov 2, 2024
1 parent c6863d0 commit 0592e41
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ import type {
ParseGraphQLConnectionWhereResult,
} from "../graphQLConnection";

/*
* function to parse the args.where for UserTag member assignment queries
/**
* type of the where object returned if the parsing is successful
*/

export type ParseUserTagMemberWhereResult = {
firstNameStartsWith: string;
lastNameStartsWith: string;
};

/**
* function to parse the args.where for UserTag member assignment queries
*/
export function parseUserTagMemberWhere(
where: UserTagUsersAssignedToWhereInput | null | undefined,
): ParseGraphQLConnectionWhereResult<ParseUserTagMemberWhereResult> {
Expand Down
8 changes: 5 additions & 3 deletions src/utilities/userTagsPaginationUtils/parseUserTagSortedBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ import type {
ParseGraphQLConnectionSortedByResult,
} from "../graphQLConnection";

/*
* function to parse the args.sortedBy for UserTag queries
/**
* type of the sort object returned if the parsing is successful
*/

export type ParseSortedByResult = {
sortById: SortedByOrder;
};

/**
* function to parse the args.sortedBy for UserTag queries
*/
export function parseUserTagSortedBy(
sortedBy: UserTagSortedByInput | null | undefined,
): ParseGraphQLConnectionSortedByResult<ParseSortedByResult> {
Expand Down
8 changes: 5 additions & 3 deletions src/utilities/userTagsPaginationUtils/parseUserTagWhere.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import type {
ParseGraphQLConnectionWhereResult,
} from "../graphQLConnection";

/*
* function to parse the args.where for UserTag queries
/**
* type of the where object returned if the parsing is successful
*/

export type ParseUserTagWhereResult = {
nameStartsWith: string;
};

/**
* function to parse the args.where for UserTag queries
*/
export function parseUserTagWhere(
where: UserTagWhereInput | null | undefined,
): ParseGraphQLConnectionWhereResult<ParseUserTagWhereResult> {
Expand Down

0 comments on commit 0592e41

Please sign in to comment.