Skip to content

Commit

Permalink
test: Types corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
cmath10 committed Nov 3, 2024
1 parent 767f5c1 commit 6a5029a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__factory__.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const createGetter = <S extends ContextSchema>(id: string, getters: Getters<S>)
}

const createSetter = <S extends ContextSchema>(id: string, setters: Setters<S>) => {
return <F extends keyof CustomerCardSchema>(field: F, value: Context<S>[F]) => {
return <F extends keyof S>(field: F, value: Context<S>[F]) => {
if (field in setters) {
setters[field](value)
return
Expand Down

0 comments on commit 6a5029a

Please sign in to comment.