File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
packages/vue-global-loader/nuxt Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
import * as _nuxt_schema from '@nuxt/schema'
2
2
3
- import { GlobalLoaderOptions } from 'vue-global-loader'
4
-
5
- // Must use a Type and not an Interface
6
- type ModuleOptions = GlobalLoaderOptions & {
3
+ // Somehow types if imported from the package are not recognized so they must be hardcoded. TODO: investigate
4
+ interface ModuleOptions {
7
5
/**
8
6
* Whether to create and inject the global loader store in the Vue app. Equivalent of calling
9
7
* `app.use(globalLoader)` in the main.js of a non-Nuxt app.
10
8
*/
11
- addPlugin ?: boolean
9
+ addPlugin : boolean
10
+ screenReaderMessage : string
11
+ transitionDuration : number
12
+ foregroundColor : string
13
+ backgroundColor : string
14
+ backgroundOpacity : number
15
+ backgroundBlur : number
16
+ zIndex : number
12
17
}
13
18
14
19
declare const _default : _nuxt_schema . NuxtModule < ModuleOptions >
15
20
16
- export { type ModuleOptions , _default as default }
21
+ export { ModuleOptions , _default as default }
Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ export default defineNuxtConfig({
27
27
} ,
28
28
} ,
29
29
globalLoader : {
30
- addPlugin : true ,
31
- // backgroundOpacity: 0.5,
32
- transitionDuration : 400 ,
30
+ // addPlugin: true,
31
+ transitionDuration : 300 ,
33
32
backgroundColor : 'var(--light-1)' ,
34
33
foregroundColor : 'var(--dark-1)' ,
35
34
} ,
You can’t perform that action at this time.
0 commit comments