Skip to content

Commit

Permalink
fix(router): router.signal type helper
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 22, 2022
1 parent 3af27f7 commit 88b8e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {joinParameterList, logger, routeSignalProvider} from './core';
import {routeChangeSignal} from './signal';
import {clickTrigger} from './trigger-click';
import {popstateTrigger} from './trigger-popstate';
import type {SignalInterface} from '@alwatr/signal';
import type {InitOptions, Route, RoutesConfig} from './type';

export type {Route, RequestRouteParam, RoutesConfig} from './type';
Expand Down Expand Up @@ -180,5 +181,5 @@ export const router = {
/**
* Signal interface of 'route-change' signal.
*/
signal: routeChangeSignal,
signal: routeChangeSignal as SignalInterface<'route-change'>,
} as const;

0 comments on commit 88b8e26

Please sign in to comment.