Skip to content

Commit

Permalink
index.d.ts: try to fix isPathValid
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Sep 17, 2024
1 parent 2614d6d commit 6cf3ec5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export interface Options {
* Creates new ignore manager.
*/
declare function ignore(options?: Options): Ignore

declare namespace ignore {
export function isPathValid (pathname: string): boolean
}
declare function isPathValid (pathname: string): boolean

export default ignore
export {
isPathValid
}
6 changes: 3 additions & 3 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ const content = fs
.replace(
/\/\/\sCOMMONJS_EXPORTS[\s\S]+$/,
`
export default factory
export {
isPathValid
}
export default factory
`
`
)

fs.writeFileSync(join(__dirname, '..', 'index.mjs'), content)

0 comments on commit 6cf3ec5

Please sign in to comment.