diff --git a/package.json b/package.json index 4761c2a..a4055fd 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "build": "tsdx build", "start": "tsdx watch", "test": "tsdx test", + "pub": "yarn build && npx np", "examples": "ts-node ./scripts/run-examples.ts" }, "dependencies": {}, diff --git a/src/Chemin.ts b/src/Chemin.ts index 3b4177c..b2a94a6 100644 --- a/src/Chemin.ts +++ b/src/Chemin.ts @@ -102,10 +102,7 @@ export interface CheminMatch { export type CheminMatchMaybe = CheminMatch | false; -// @deprecated -export type CheminMatchResult = CheminMatchMaybe; - -function matchPattern(pattern: Chemin, pathname: string | Array): CheminMatchResult { +function matchPattern(pattern: Chemin, pathname: string | Array): CheminMatchMaybe { const pathParts = typeof pathname === 'string' ? CheminUtils.splitPathname(pathname) : pathname; return matchPart(pattern, pathParts); } diff --git a/src/index.ts b/src/index.ts index fd4b177..25bda6d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export { Chemin, CheminMatchResult, CheminMatchMaybe, CheminMatch } from './Chemin'; +export { Chemin, CheminMatchMaybe, CheminMatch } from './Chemin'; export { CheminParams } from './CheminParams'; export { CheminUtils } from './CheminUtils';