Skip to content

Commit 614bfb4

Browse files
fix(typescript): Mark params as optional in StateService.href
Closes #287
1 parent 148b16b commit 614bfb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state/stateService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export class StateService {
500500
*
501501
* @returns {string} compiled state url
502502
*/
503-
href(stateOrName: StateOrName, params: RawParams, options?: HrefOptions): string {
503+
href(stateOrName: StateOrName, params?: RawParams, options?: HrefOptions): string {
504504
const defaultHrefOpts = {
505505
lossy: true,
506506
inherit: true,

0 commit comments

Comments
 (0)