Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jul 13, 2024
1 parent b29958b commit 7b5ff8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/casted/castMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function castMapping<TMapping extends Mapping | null | undefined>(
? mapping
: mapping != null
? <TInput extends MappedInput<TMapping>>(input: TInput) =>
input[mapping as keyof TInput] as MappedOutput<TMapping>
input[mapping as keyof object] as MappedOutput<TMapping>
: input => input as MappedOutput<TMapping>
}

Expand Down

0 comments on commit 7b5ff8f

Please sign in to comment.