Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Oct 11, 2023
1 parent 0f0427f commit a46f542
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ type StoreDispatch<MODULES, ACTIONS> =
K extends keyof (AS & ACTIONS),
>(type: K, payload:
K extends keyof AS
? AS[K] extends (...args: any) => any
? AS[K] extends (...args: any) => any
? Parameters<AS[K]>[1]
: undefined
: K extends keyof ACTIONS
Expand All @@ -230,7 +230,7 @@ type StoreDispatch<MODULES, ACTIONS> =
K extends keyof (AS & ACTIONS),
>(input: { type: K } & (
K extends keyof AS
? AS[K] extends (...args: any) => any
? AS[K] extends (...args: any) => any
? Parameters<AS[K]>[1]
: {}
: K extends keyof ACTIONS
Expand Down
6 changes: 3 additions & 3 deletions test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createVueApp(options) {
return Vue.createApp(options)
}

export function mount (store, component) {
export function mount(store, component) {
const el = createElement()

component.render = component.render || (() => {})
Expand All @@ -23,10 +23,10 @@ export function mount (store, component) {
return app.mount(el)
}

function createElement () {
function createElement() {
const el = document.createElement('div')

document.body.appendChild(el)

return el
}
}
2 changes: 1 addition & 1 deletion test/index4.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertType, describe, expect, it } from 'vitest'
import { createStore } from 'vuex'
import { createApp, defineComponent } from 'vue'
import { defineComponent } from 'vue'
import { defineModule, defineStore } from '../src'
import { userModule } from './modules/user'
import { user22Module } from './modules/user2'
Expand Down

0 comments on commit a46f542

Please sign in to comment.