Skip to content

Commit e47754e

Browse files
committed
fix: typescript
1 parent dd655eb commit e47754e

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

script/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ node script/migrator.js
33
git add .
44
git commit -m "chore: Update migrator"
55
yarn release
6-
git push origin release --tags
6+
git push origin release --force --tags
77
yarn deploy

src/ui/reducers/config.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,16 @@ export type ConfigState = {
4444
theme: string
4545
}
4646

47-
export const setConfigValue: ActionCreator<{
48-
key: string
49-
value: string | boolean
50-
valid: boolean
51-
}> = createAction("set-config-value", input => {
52-
const rule = (rules as any)[input.key]
53-
return {
54-
...input,
55-
valid: rule.test(input.value)
47+
export const setConfigValue = createAction(
48+
"set-config-value",
49+
(input: { key: string; value: number | string | boolean }) => {
50+
const rule = (rules as any)[input.key]
51+
return {
52+
...input,
53+
valid: rule.test(input.value)
54+
}
5655
}
57-
})
56+
)
5857

5958
const initalState: ConfigState = {
6059
committerName: "",

0 commit comments

Comments
 (0)