Skip to content

Commit

Permalink
types for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Aug 5, 2024
1 parent 92f1cd4 commit 3c3c9bb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions src/views/PhotoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ onMounted(() => {
@updateRotation="(r) => (photoRotation = (photoRotation + r) % 360)"
/>
<InputItem
@updateBackground="(b) => (photo = b)"
@updateRunner="(r) => (runner = r)"
@updateTitle="(t) => (title = t)"
@updateSubtitle="(s) => (subtitle = s)"
@updateCategory="(c) => (category = c)"
@updateMoney="(m) => (money = m)"
@updateBackground="(b: string) => (photo = b)"
@updateRunner="(r: string) => (runner = r)"
@updateTitle="(t: string) => (title = t)"
@updateSubtitle="(s: string) => (subtitle = s)"
@updateCategory="(c: string) => (category = c)"
@updateMoney="(m: number) => (money = m)"
:runner="initialRunner"
:title="initialTitle"
:subtitle="initialSubtitle"
Expand Down
12 changes: 6 additions & 6 deletions src/views/RunnerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ onMounted(() => {
</v-row>
<v-row>
<InputItem
@updateBackground="(b) => (photo = b)"
@updateRunner="(r) => (runner = r)"
@updateTitle="(t) => (title = t)"
@updateSubtitle="(s) => (subtitle = s)"
@updateCategory="(c) => (category = c)"
@updateMoney="(m) => (money = m)"
@updateBackground="(b: string) => (photo = b)"
@updateRunner="(r: string) => (runner = r)"
@updateTitle="(t: string) => (title = t)"
@updateSubtitle="(s: string) => (subtitle = s)"
@updateCategory="(c: string) => (category = c)"
@updateMoney="(m: number) => (money = m)"
:runner="initialRunner"
:title="initialTitle"
:subtitle="initialSubtitle"
Expand Down
12 changes: 6 additions & 6 deletions src/views/YoutubeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ onMounted(() => {
@updateRotation="(r) => (photoRotation = (photoRotation + r) % 360)"
/>
<InputItem
@updateBackground="(b) => (photo = b)"
@updateRunner="(r) => (runner = r)"
@updateTitle="(t) => (title = t)"
@updateSubtitle="(s) => (subtitle = s)"
@updateCategory="(c) => (category = c)"
@updateTime="(t) => (time = t)"
@updateBackground="(b: string) => (photo = b)"
@updateRunner="(r: string) => (runner = r)"
@updateTitle="(t: string) => (title = t)"
@updateSubtitle="(s: string) => (subtitle = s)"
@updateCategory="(c: string) => (category = c)"
@updateTime="(t: string) => (time = t)"
:runner="initialRunner"
:title="initialTitle"
:subtitle="initialSubtitle"
Expand Down

0 comments on commit 3c3c9bb

Please sign in to comment.