Closed cliedeman closed 5 years ago
don't have much experience with TS, but as long as it's not breaking anything, why not!
@cliedeman thanks for this and also for whitelisting the files in package.json
!
FYI it's now published as v5.1.1
@cliedeman Thanks for the type definition. But I have an error with
'normalizePath', which lacks return-type annotation, implicitly has an 'any' return type. at this line.
export function normalizePath( req: express.Request, opts?: { normalizePath?: NormalizePathRegexs } );
Is it possible to change this to
export function normalizePath( req: express.Request, opts?: { normalizePath?: NormalizePathRegexs } ): any;
without breaking anything?
@ajilo297 My bad I missed the return value.
I created #34 to fix this.
Here is the code I use to test the typedefs
Taking quick look we should be able to return string there. https://github.com/disjunction/url-value-parser/blob/master/src/UrlValueParser.js#L35
Ciaran
@cliedeman Awesome. Thanks
published as v5.1.2
Thanks and sorry for the churn
Would you be open to a PR thats adds typescript type definitions?