Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 2, 2024
1 parent b22bd36 commit 1854165
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/ContentNavItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { NavItem } from '@nuxt/content/dist/runtime/types'
import type { NavItem } from '@nuxt/content'
const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion components/PanelDocs.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import type { NavItem, ParsedContent } from '@nuxt/content/dist/runtime/types'
import type { NavItem, ParsedContent } from '@nuxt/content'
const {
navigation,
Expand Down
4 changes: 2 additions & 2 deletions monaco/vue.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import * as worker from 'monaco-editor-core/esm/vs/editor/editor.worker'
import type * as monaco from 'monaco-editor-core'
import * as ts from 'typescript/lib/tsserverlibrary'
import type { LanguageServiceEnvironment, VueCompilerOptions } from '@vue/language-service'
import { getFullLanguageServicePlugins, createVueLanguagePlugin, resolveVueCompilerOptions } from '@vue/language-service'
import { createVueLanguagePlugin, getFullLanguageServicePlugins, resolveVueCompilerOptions } from '@vue/language-service'
import { createTypeScriptWorkerService } from '@volar/monaco/worker'
import type { WorkerHost } from './env'
import { URI } from 'vscode-uri'
import type { WorkerHost } from './env'

export interface CreateData {
tsconfig: {
Expand Down
3 changes: 1 addition & 2 deletions stores/commands.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
import Fuse from 'fuse.js'

export interface Command {
Expand Down Expand Up @@ -28,7 +27,7 @@ export const useCommandsStore = defineStore('commands', () => {
if (v) {
// TODO: send a PR to nuxt/content to default generic type
// TODO: move it out if it's reactive
const result = await searchContent(v, {}) as ComputedRef<ParsedContent[]>
const result = await searchContent(v, {})
guidesResult.value = result.value.map((i): Command => ({
id: i.id,
title: i.title || 'Untitled',
Expand Down

0 comments on commit 1854165

Please sign in to comment.