Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed Oct 23, 2019
1 parent d3f7c48 commit 18f0d4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
5 changes: 1 addition & 4 deletions src/Chemin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ export interface CheminMatch<Params> {

export type CheminMatchMaybe<Params> = CheminMatch<Params> | false;

// @deprecated
export type CheminMatchResult<Params> = CheminMatchMaybe<Params>;

function matchPattern<Params>(pattern: Chemin<Params>, pathname: string | Array<string>): CheminMatchResult<Params> {
function matchPattern<Params>(pattern: Chemin<Params>, pathname: string | Array<string>): CheminMatchMaybe<Params> {
const pathParts = typeof pathname === 'string' ? CheminUtils.splitPathname(pathname) : pathname;
return matchPart(pattern, pathParts);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 18f0d4a

Please sign in to comment.