Skip to content

Commit

Permalink
Fix type of resolved key
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Jan 31, 2024
1 parent 05313ff commit 4ffe8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/support/src/meta/targetMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function makeMetaEntry(
value?: unknown
): MetaEntry
{
let resolvedKey: Key = key;
let resolvedKey: Key | MetaCallback = key;
let resolvedValue: unknown = value;

// When key is a callback, invoke it and use its resulting key-value pair.
Expand All @@ -246,7 +246,7 @@ function makeMetaEntry(
}

return {
key: mergeKeys(prefixKey, resolvedKey),
key: mergeKeys(prefixKey, resolvedKey as Key),
value: resolvedValue
} as MetaEntry;
}

0 comments on commit 4ffe8b2

Please sign in to comment.