Skip to content

Commit

Permalink
chore: fix typing issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Jul 28, 2023
1 parent 935d132 commit feab1d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gatsby-source-contentful/src/backreferences.ts
Expand Up @@ -55,7 +55,9 @@ export async function getExistingCachedNodes({
const allNodeTypeNames = Array.from(dataStore.getTypes())

for (const typeName of allNodeTypeNames) {
const typeNodes: Array<Node> = dataStore.iterateNodesByType(typeName)
const typeNodes = dataStore.iterateNodesByType(
typeName
) as Array<unknown> as Array<Node>

const firstNodeOfType = Array.from(typeNodes.slice(0, 1))[0]

Expand Down

0 comments on commit feab1d9

Please sign in to comment.