Skip to content

Commit

Permalink
remove hasParam prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Apr 10, 2020
1 parent 6c7d723 commit 04c6ea6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/middleware/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const defineFiles = createNodeMiddleware(({ file }) => {
file.isIndex = ['index'].includes(file.name)
file.isFallback = ['_fallback'].includes(file.name)
file.isPage = file.isFile && !file.isLayout && !file.isFallback
file.hasParam = file.name.match(/^\[.+\]$/) ? true : false
})


Expand Down
1 change: 0 additions & 1 deletion typedef.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* @prop {Boolean=} isReset
* @prop {Boolean=} isIndex
* @prop {Boolean=} isFallback
* @prop {Boolean=} hasParam
*
* @typedef {Object} GeneratedFile
* @prop {String} name
Expand Down

0 comments on commit 04c6ea6

Please sign in to comment.