Skip to content

Commit

Permalink
style: fix Type 'any' is not assignable to type 'never'
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Jun 28, 2021
1 parent 6877f86 commit 9d9b9ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/footer/sage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const actions: IActions = {
}
}

type Mutation<Payload = never> = (state: FooterState, payload: Payload) => any
type Mutation<Payload = any> = (state: FooterState, payload: Payload) => any
type IMutations<T = MutationTree<FooterState>> = {
[FooterMutations.SET_MUSIC_URL_LOADING]: Mutation<boolean>
[FooterMutations.LYRICS_EMBED_MIN_WIDTH]: Mutation<number>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/list/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ export default defineComponent({
type: 'stack'
}
})
footerStore.useMutations(FooterMutations.SET_PLAYLIST_TO_STACK, stack)
footerStore.useMutations(
FooterMutations.SET_PLAYLIST_TO_STACK,
(stack as unknown) as SongsDetail[]
)

const { music } = footerStore.useState()
if (music?.id !== stack[0].id) {
Expand Down

1 comment on commit 9d9b9ea

@vercel
Copy link

@vercel vercel bot commented on 9d9b9ea Jul 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.