Skip to content

Commit

Permalink
fix: fix wrong action input type
Browse files Browse the repository at this point in the history
  • Loading branch information
yumincho committed Apr 1, 2024
1 parent 62bb760 commit 373e8c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/actions/common/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ export const SET_TRACKS = `${BASE_STRING}SET_TRACKS` as const;
/* eslint-enable prefer-template */

import GeneralTrack from '@/shapes/model/graduation/GeneralTrack';
import MajorTrack from '@/shapes/model/graduation/MajorTrack';
import AdditionalTrack from '@/shapes/model/graduation/AdditionalTrack';

export function setTracks(tracks: Array<GeneralTrack | AdditionalTrack>) {
interface TracksProps {
general: GeneralTrack[];
major: MajorTrack[];
additional: AdditionalTrack[];
}

export function setTracks(tracks: TracksProps) {
return {

Check warning on line 18 in src/actions/common/track.ts

View check run for this annotation

Codecov / codecov/patch

src/actions/common/track.ts#L17-L18

Added lines #L17 - L18 were not covered by tests
type: SET_TRACKS,
tracks: tracks,
Expand Down

0 comments on commit 373e8c8

Please sign in to comment.