Skip to content

Commit

Permalink
Merge pull request #10 from thefrontside/dl/rename-helper-typos
Browse files Browse the repository at this point in the history
Fix helper name typos
  • Loading branch information
wKich authored Oct 2, 2023
2 parents eab2b14 + 46a5020 commit 68ecf6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-news-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frontside/hydraphql": patch
---

Fix helper name typos
4 changes: 2 additions & 2 deletions src/core/resolveDirectiveMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
createConnectionType,
decodeId,
encodeId,
getNoteTypeForConnection,
getNodeTypeForConnection,
isConnectionType,
isNamedListType,
unboxNamedType,
Expand Down Expand Up @@ -41,7 +41,7 @@ export function resolveDirectiveMapper(

if (isConnectionType(field.type)) {
if (directive.nodeType && typeof directive.nodeType === "string") {
const nodeType = getNoteTypeForConnection(
const nodeType = getNodeTypeForConnection(
directive.nodeType,
(name) => api.typeMap[name],
(name, type) => (api.typeMap[name] = type),
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function createConnectionType(
});
}

export function getNoteTypeForConnection(
export function getNodeTypeForConnection(
typeName: string,
getType: (name: string) => GraphQLNamedType | undefined,
setType: (name: string, type: GraphQLNamedType) => void,
Expand Down

0 comments on commit 68ecf6c

Please sign in to comment.