mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Add type Params (#22729)
Sorry I tested it but for some reason I uploaded without Params Type by accident the last time.
This commit is contained in:
committed by
Mohamed Hegazy
parent
8c3692c2c5
commit
f275961d97
Vendored
+4
@@ -3,6 +3,10 @@
|
||||
// Definitions by: Adrian Ehrsam <https://github.com/aersamkull>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export type Keys = string
|
||||
export type State = {[k in Keys]: any}
|
||||
export type Params = State;
|
||||
|
||||
interface NavigoHooks {
|
||||
before?(done: (suppress?: boolean) => void, params?: Params): void;
|
||||
after?(params?: Params): void;
|
||||
|
||||
Reference in New Issue
Block a user