Skip to content

Commit

Permalink
feat: formatting for .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 19, 2023
1 parent 259c65a commit 35f9f2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions fixtures/vitesse/src/auto-imports.d.ts
@@ -1,4 +1,7 @@
// Generated by 'unplugin-auto-import'
// for vue template auto import
import type { UnwrapRef } from 'vue'

export {}
declare global {
const $$: typeof import('vue/macros')['$$']
Expand Down Expand Up @@ -270,8 +273,6 @@ declare global {
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
const whenever: typeof import('@vueuse/core')['whenever']
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
readonly $$: UnwrapRef<typeof import('vue/macros')['$$']>
Expand Down
6 changes: 4 additions & 2 deletions fixtures/vitesse/src/shims.d.ts
Expand Up @@ -5,12 +5,14 @@ declare interface Window {
// with vite-plugin-vue-markdown, markdown files can be treated as Vue components
declare module '*.md' {
import { type DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>

const component: DefineComponent<object, object, any>
export default component
}

declare module '*.vue' {
import { type DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>

const component: DefineComponent<object, object, any>
export default component
}
1 change: 0 additions & 1 deletion packages/eslint-config-basic/index.js
Expand Up @@ -20,7 +20,6 @@ module.exports = {
],
ignorePatterns: [
'*.min.*',
'*.d.ts',
'CHANGELOG.md',
'dist',
'LICENSE*',
Expand Down

0 comments on commit 35f9f2e

Please sign in to comment.