forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
satnav.d.ts
28 lines (23 loc) · 766 Bytes
/
satnav.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Type definitions for satnav
// Project: https://github.com/f5io/satnav-js
// Definitions by: Christian Holm Diget <https://github.com/DotNetNerd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare type Callback = () => void;
interface ISatnavOptions {
html5?: boolean,
force?: boolean,
poll?: number,
matchAll?: boolean
}
interface INavigationOptions {
path?: string,
directions?: (params : any) => any,
title?: string | Callback
}
interface ISatnav {
navigate(navigationOptions: INavigationOptions): ISatnav;
otherwise(route: string): ISatnav;
change(onChange: (hash: string, params: any, old: any) => any): ISatnav;
go(): ISatnav;
}
declare function Satnav(options?: ISatnavOptions): ISatnav;