Skip to content

Commit 72ebdb9

Browse files
Merge pull request #806 from tighten/qs-type-error
Redefine `ParsedQs` type
2 parents ee0c18c + 2c8a545 commit 72ebdb9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/js/index.d.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { ParsedQs } from 'qs';
2-
31
/**
42
* A list of routes and their parameters and bindings.
53
*
@@ -160,6 +158,11 @@ interface Config {
160158
};
161159
}
162160

161+
// qs's parsed query params type, so we don't have to have qs as a dependency
162+
interface ParsedQs {
163+
[key: string]: undefined | string | string[] | ParsedQs | ParsedQs[];
164+
}
165+
163166
/**
164167
* Ziggy's Router class.
165168
*/

0 commit comments

Comments
 (0)