mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
770 B
TypeScript
28 lines
770 B
TypeScript
// Type definitions for satnav
|
|
// Project: https://github.com/f5io/satnav-js
|
|
// Definitions by: Christian Holm Diget <https://github.com/DotNetNerd>
|
|
// Definitions: https://github.com/DefinitelyTyped/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; |