Skip to content

Commit 6caf823

Browse files
committed
refactor!: rename config policies to routes
1 parent a8cf987 commit 6caf823

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export default defineNuxtModule<ModuleOptions>().with({
7777
},
7878
},
7979

80-
// Policies
81-
policies: {
82-
privacyUrl: '/privacy',
83-
termsUrl: '/terms',
80+
// Routes
81+
routes: {
82+
privacy: '/privacy',
83+
terms: '/terms',
8484
},
8585

8686
// Announcement

src/types/module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ interface BrandOptions {
7979
}
8080
}
8181

82-
interface PoliciesOptions {
83-
privacyUrl: string
84-
termsUrl: string
82+
interface RoutesOptions {
83+
privacy: string
84+
terms: string
8585
}
8686

8787
export interface ModuleOptions {
@@ -96,9 +96,9 @@ export interface ModuleOptions {
9696
brand?: BrandOptions
9797

9898
/**
99-
* Policies options
99+
* RoutesOptions options
100100
*/
101-
policies?: PoliciesOptions
101+
routes?: RoutesOptions
102102

103103
/**
104104
* Announcement options

0 commit comments

Comments
 (0)