Skip to content

Commit

Permalink
✨ global type of uno.config.mjs #115
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Dec 17, 2024
1 parent e20842a commit ee4dec5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .changeset/tiny-crabs-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fessional/razor-common": patch
"@fessional/razor-mobile": patch
---

✨ global type of uno.config.mjs #115
2 changes: 1 addition & 1 deletion layers/common/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './types/common.global';
export * from './types/vue.global';
export * from './types/module.global';

export {};
17 changes: 17 additions & 0 deletions layers/common/types/module.global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
declare module '@vue/runtime-core' {
import type { AutosizeDirective } from '../plugins/autosize-directive';

interface GlobalDirectives {
vAutosize: AutosizeDirective;
}
}

declare module 'uno.config.mjs' {
import type { UserConfig } from '@unocss/core';

const config: UserConfig<object>;
export default config;
}

//
export {};
10 changes: 0 additions & 10 deletions layers/common/types/vue.global.d.ts

This file was deleted.

0 comments on commit ee4dec5

Please sign in to comment.