mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* remove non-existing constructor method from Array in Ember * removed method named "new" and added a constructor to the Collaborator class in google-drive-realtime * made LocalizedObservable into the class that it actually is in Knockout * removed a method named "constructor" and replaced it with a constructor in microsoft-ajax * removed a method called "new" and replaced it with a constructor in microsoft-ajax * autoformat * made QueryCursor into the class it actually is in mongoose * made Connection into a class * made QueryStream and QueryCursor into a classes * removed two methods called "new" and replaced them with constructors * change EventSubscriptionVendor into a class * removed class only used internally Route (it had a wrongly declared method named "constructor") * removed non-existing method named "constructor" in rx-angular * made StackFrame into a class * made StreamMeter into a class * removed a method named "new" and replaced it with a constructor
27 lines
770 B
TypeScript
27 lines
770 B
TypeScript
// Type definitions for routie 0.3.2
|
|
// Project: https://github.com/jgallen23/routie
|
|
// Definitions by: Adilson <https://github.com/Adilson>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace routie {
|
|
interface Routie extends RoutieStatic {
|
|
(path: string): void;
|
|
(path: string, fn: Function): void;
|
|
(routes: { [key: string]: Function }): void;
|
|
}
|
|
|
|
interface RoutieStatic {
|
|
lookup(name: string, fn: Function): string;
|
|
remove(path: string, fn: Function): void;
|
|
removeAll(): void;
|
|
navigate(path: string, options?: RouteOptions): void;
|
|
noConflict(): Routie;
|
|
}
|
|
|
|
interface RouteOptions {
|
|
silent?: boolean;
|
|
}
|
|
}
|
|
|
|
declare var routie: routie.Routie;
|