Skip to content

Commit 59e2eef

Browse files
committed
fix: link typings to the right file
1 parent 1dca88e commit 59e2eef

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

modules/RouteNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface MatchOptions {
4040
strictTrailingSlash?: boolean
4141
strongMatching?: boolean
4242
}
43+
export { QueryParamsOptions }
4344

4445
export interface MatchResponse {
4546
segments: RouteNode[]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"jsnext:main": "dist/es/route-node.js",
77
"module": "dist/es/route-node.js",
88
"sideEffects": false,
9-
"typings": "./typings/index.d.ts",
9+
"typings": "./typings/RouteNode.d.ts",
1010
"scripts": {
1111
"test": "mocha -r ts-node/register 'test/main.js'",
1212
"lint": "tslint modules/*.ts",

typings/RouteNode.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface MatchOptions {
2121
strictTrailingSlash?: boolean;
2222
strongMatching?: boolean;
2323
}
24+
export { QueryParamsOptions };
2425
export interface MatchResponse {
2526
segments: RouteNode[];
2627
params: object;

0 commit comments

Comments
 (0)