chore(deps): update lint (#1928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
parent
2838e18ff7
commit
3c43a1cdd1
62 changed files with 464 additions and 434 deletions
|
@ -78,8 +78,9 @@ export interface QueryResult {
|
|||
grouped: Map<CommandScopeNames, QueryResultItem[]>
|
||||
}
|
||||
|
||||
const r = <T extends Object | undefined>(i: T | (() => T)): T =>
|
||||
typeof i === 'function' ? i() : i
|
||||
function r<T extends Object | undefined>(i: T | (() => T)): T {
|
||||
return typeof i === 'function' ? i() : i
|
||||
}
|
||||
|
||||
export const useCommandRegistry = defineStore('command', () => {
|
||||
const providers = reactive(new Set<CommandProvider>())
|
||||
|
@ -237,7 +238,7 @@ export function useCommands(cmds: () => CommandProvider[]) {
|
|||
tryOnScopeDispose(cleanup)
|
||||
}
|
||||
|
||||
export const provideGlobalCommands = () => {
|
||||
export function provideGlobalCommands() {
|
||||
const { locale, t } = useI18n()
|
||||
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
||||
const router = useRouter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue