New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update type definition #97
Conversation
types/index.d.ts
Outdated
@@ -62,6 +62,7 @@ export const Switch: FunctionComponent<SwitchProps>; | |||
|
|||
export interface RouterProps { | |||
hook: LocationHook; | |||
basepath: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it's not really critical, but I would suggest using a Path
type here (which is just an alias to string
, but helps to keep the code more generic I guess). Basically Path
represents something that can describe a location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea!! Thx! i will fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just one small comment regarding the Path
type and we can merge this.
@cbbfcd thank you very much! You help us a lot |
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
==========================================
- Coverage 99.45% 99.44% -0.01%
==========================================
Files 7 7
Lines 182 181 -1
Branches 32 32
==========================================
- Hits 181 180 -1
Misses 1 1
Continue to review full report at Codecov.
|
update type definition, because we have
basepath
now!