Skip to content

Commit b688864

Browse files
committed
types: don't allow undefined objects
1 parent 6004d86 commit b688864

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ export interface ModuleOptions {
6262
/**
6363
* Brand options
6464
*/
65-
brand?: BrandOptions
65+
brand: BrandOptions
6666

6767
/**
6868
* Policies options
6969
*/
70-
policies?: PoliciesOptions
70+
policies: PoliciesOptions
7171

7272
/**
7373
* Announcement banner options
7474
*/
75-
announcement?: {
75+
announcement: {
7676
show?: boolean
7777
message?: string
7878
buttonText?: string
@@ -82,8 +82,8 @@ export interface ModuleOptions {
8282
/**
8383
* Credits options
8484
*/
85-
credits?: {
86-
creator?: {
85+
credits: {
86+
creator: {
8787
name?: string
8888
domain?: string
8989
}
@@ -95,7 +95,7 @@ export interface ModuleOptions {
9595
/**
9696
* Email options
9797
*/
98-
email?: {
98+
email: {
9999
general?: string
100100
support?: string
101101
}

0 commit comments

Comments
 (0)