Skip to content

Commit

Permalink
feat: Add type def to NuxtConfiguration (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
potato4d committed Feb 4, 2020
1 parent 49cf83a commit 2905136
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"authentication"
],
"main": "lib/module.js",
"types": "./types/index.d.ts",
"license": "MIT",
"repository": "https://github.com/potato4d/nuxt-basic-auth-module",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare module '@nuxt/types' {
interface Configuration {
basic?: {
name: string,
pass: string,
enabled?: boolean,
match?: string | Function
}
}
}

0 comments on commit 2905136

Please sign in to comment.