File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ export default defineNuxtConfig({
11
11
tagline : 'This is a sample tagline for the pages module.' ,
12
12
} ,
13
13
14
+ // Email
15
+ email : {
16
+
17
+
18
+ } ,
19
+
14
20
// Navigation
15
21
navigation : {
16
22
primary : [
Original file line number Diff line number Diff line change 1
1
import type { ModuleOptions as CoreModuleOptions } from '@nuxtify/core'
2
2
3
+ // Extend core types
4
+ type CoreEmailOptions = NonNullable < CoreModuleOptions [ 'email' ] >
5
+ interface Email extends CoreEmailOptions {
6
+ provider ?: {
7
+ defaultSubmitUrl ?: string
8
+ }
9
+ }
10
+
11
+ // Link types
3
12
interface Link {
4
13
text : string
5
14
to ?: string
6
15
href ?: string
7
16
icon ?: string
8
17
openInNew ?: boolean
9
18
}
10
-
11
19
interface FooterLinks {
12
20
title : string
13
21
links : Link [ ]
14
22
}
15
23
24
+ // Page interface
16
25
interface PageModuleOptions {
17
26
/**
18
27
* Navigation options
@@ -40,11 +49,7 @@ interface PageModuleOptions {
40
49
/**
41
50
* Email options
42
51
*/
43
- email ?: {
44
- provider ?: {
45
- defaultSubmitUrl ?: string
46
- }
47
- }
52
+ email ?: Email
48
53
49
54
/**
50
55
* Style options
You can’t perform that action at this time.
0 commit comments