diff --git a/.gitignore b/.gitignore
index 2a52c95e0..35dd5a667 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,37 +1,37 @@
-*.dll
-*.exe
-*.cmd
-*.pdb
-*.suo
-*.js
-*.user
-*.cache
-*.cs
-*.sln
-*.csproj
-*.txt
-*.map
-*.swp
-.DS_Store
-npm-debug.log
-
-_Resharper.DefinitelyTyped
-bin
-obj
-Properties
-
-# VIM backup files
-*~
-
-# test folder
-_infrastructure/tests/build
-
-.idea
-*.iml
-*.js.map
-!*.js/
-
-node_modules
-
-.sublimets
-.settings/launch.json
+*.dll
+*.exe
+*.cmd
+*.pdb
+*.suo
+*.js
+*.user
+*.cache
+*.cs
+*.sln
+*.csproj
+*.txt
+*.map
+*.swp
+.DS_Store
+npm-debug.log
+
+_Resharper.DefinitelyTyped
+bin
+obj
+Properties
+
+# VIM backup files
+*~
+
+# test folder
+_infrastructure/tests/build
+
+.idea
+*.iml
+*.js.map
+!*.js/
+
+node_modules
+
+.sublimets
+.settings/launch.json
diff --git a/Finch/Finch-tests.ts b/Finch/Finch-tests.ts
index 28aeb6b66..ec15bcb88 100644
--- a/Finch/Finch-tests.ts
+++ b/Finch/Finch-tests.ts
@@ -1,368 +1,368 @@
-///
-
-function test_Finch() {
-
-
- Finch.route("Hello/Route", function() {
- return console.log("Well hello there! How you doin'?!");
- });
-
- Finch.route("Hello/Route/:someId", function(bindings) {
- return console.log("Hey! Here's Some Id: " + bindings.someId);
- });
-
- Finch.route("Hello/Route/:someId", function(bindings, childCallback) {
- console.log("Hey! Here's Some Id: " + bindings.someId);
- return childCallback();
- });
-
- Finch.route("some/route", {
- setup: function(bindings) {
- return console.log("Some Route has been setup! :)");
- },
- load: function(bindings) {
- return console.log("Some Route has been loaed! :D");
- },
- unload: function(bindings) {
- return console.log("Some Route has been loaed! :(");
- },
- teardown: function(bindings) {
- return console.log("Some Route has been torndown! :'(");
- }
- });
-
- Finch.route("some/route", {
- setup: function(bindings, childCallback) {
- console.log("Some Route has been setup! :)");
- return childCallback();
- },
- load: function(bindings, childCallback) {
- console.log("Some Route has been loaed! :D");
- return childCallback();
- },
- unload: function(bindings, childCallback) {
- console.log("Some Route has been loaed! :(");
- return childCallback();
- },
- teardown: function(bindings, childCallback) {
- console.log("Some Route has been torndown! :'(");
- return childCallback();
- }
- });
-
- Finch.call("Some/Route");
-
- Finch.route("Some/Route", function() {
- return Finch.observe("hello", "foo", function(hello: any, foo: string) {
- return console.log("" + hello + " and " + foo);
- });
- });
-
- Finch.route("Some/Route", function() {
- return Finch.observe(["hello", "foo"], function(hello: any, foo: any) {
- return console.log("" + hello + " and " + foo);
- });
- });
-
- Finch.route("Some/Route", function(bindings) {
- return Finch.observe(function(params) {
- });
- });
-
- Finch.navigate("Some/Route");
-
- Finch.navigate("Some/Route", {
- hello: 'world',
- foo: 'bar'
- });
-
- Finch.navigate("Some/Route", {
- foo: 'bar'
- }, true);
-
- Finch.navigate("Some/Route", true);
-
- Finch.navigate({
- hello: 'world2',
- wow: 'wee'
- });
-
- Finch.navigate({
- foo: 'bar',
- wow: 'wee!!!'
- });
-
- Finch.navigate({
- hello: 'world2'
- }, true);
-
- Finch.listen();
- Finch.ignore();
- Finch.abort();
-
-
- //test from Finch
- Finch.call("/foo/bar");
- Finch.call("/foo/bar/123");
- Finch.call("/foo/bar/123");
- Finch.call("/foo/bar/123?x=Hello&y=World");
- Finch.call("/foo/baz/456");
- Finch.call("/quux/789?band=Sunn O)))&genre=Post-Progressive Fridgecore");
- Finch.call("/foo/bar/baz");
- Finch.call("/foo/bar/quux");
- Finch.call("/foo");
- Finch.call("/foo/bar");
- Finch.call("/foo");
- Finch.call("/foo");
- Finch.call("/");
- Finch.call("/");
- Finch.call("/foo");
- Finch.call("/foo/bar");
- Finch.call("/foo/bar?baz=quux");
- Finch.call("/foo/bar?baz=xyzzy");
-
- var cb: any;
- Finch.route("foo", {
- setup: cb.setup_foo = this.stub(),
- load: cb.load_foo = this.stub(),
- unload: cb.unload_foo = this.stub(),
- teardown: cb.teardown_foo = this.stub()
- });
- Finch.route("[foo]/bar", {
- setup: cb.setup_foo_bar = this.stub(),
- load: cb.load_foo_bar = this.stub(),
- unload: cb.unload_foo_bar = this.stub(),
- teardown: cb.teardown_foo_bar = this.stub()
- });
- Finch.route("[foo/bar]/:id", {
- setup: cb.setup_foo_bar_id = this.stub(),
- load: cb.load_foo_bar_id = this.stub(),
- unload: cb.unload_foo_bar_id = this.stub(),
- teardown: cb.teardown_foo_bar_id = this.stub()
- });
- Finch.route("[foo]/baz", {
- setup: cb.setup_foo_baz = this.stub(),
- load: cb.load_foo_baz = this.stub(),
- unload: cb.unload_foo_baz = this.stub(),
- teardown: cb.teardown_foo_baz = this.stub()
- });
- Finch.route("[foo/baz]/:id", {
- setup: cb.setup_foo_baz_id = this.stub(),
- load: cb.load_foo_baz_id = this.stub(),
- unload: cb.unload_foo_baz_id = this.stub(),
- teardown: cb.teardown_foo_baz_id = this.stub()
- });
- Finch.call("/foo");
- Finch.call("/foo/bar");
- Finch.call("/foo");
- Finch.call("/foo/bar/123?x=abc");
- Finch.call("/foo/bar/456?x=aaa&y=zzz");
- Finch.call("/foo/bar/456?x=bbb&y=zzz");
- Finch.call("/foo/bar/456?y=zzz&x=bbb");
- Finch.call("/foo/baz/789");
- Finch.call("/foo/baz/abc?term=Hello");
- Finch.call("/foo/baz/abc?term=World");
- Finch.route("bar", this.stub());
- Finch.call("/foo");
- Finch.call("/bar");
- Finch.route("/", function() {
- });
- Finch.route("[/]home", function() {
- });
- Finch.route("[/home]/news", {
- setup: function() {
- },
- load: function() {
- },
- unload: function() {
- return true;
- },
- teardown: function() {
- return false;
- }
- });
- Finch.route("/foo", {
- setup: function() {
- return true;
- },
- load: function() {
- return true;
- },
- unload: function() {
- },
- teardown: function() {
- }
- });
- Finch.route("[/]bar", {
- setup: function() {
- },
- load: function() {
- },
- unload: function() {
- },
- teardown: function() {
- }
- });
- Finch.call("/bar");
- Finch.call("/home/news");
- Finch.call("/foo");
- Finch.call("/home/news");
- Finch.call("/bar");
- Finch.route("baz", this.stub());
- Finch.call("/foo");
- Finch.call("/foo/bar");
- Finch.call("/baz");
- Finch.route("/home", {
- setup: function(bindings, next) {
- return next();
- },
- load: function(bindings, next) {
- return next();
- },
- unload: function(bindings, next) {
- return next();
- },
- teardown: function(bindings, next) {
- return next();
- }
- });
- Finch.route("[/home]/news", {
- setup: function(bindings, next) {
- return next();
- },
- load: function(bindings, next) {
- return next();
- },
- unload: function(bindings, next) {
- return next();
- },
- teardown: function(bindings, next) {
- return next();
- }
- });
- Finch.call("/home");
- Finch.call("/home/news");
- Finch.call("/foo");
-
- Finch.route("/", function(bindings) {
- return Finch.observe(["x"], function(x) {
- });
- });
- Finch.call("/?x=123");
- Finch.call("/?x=123.456");
- Finch.call("/?x=true");
- Finch.call("/?x=false");
- Finch.call("/?x=stuff");
- Finch.options({
- CoerceParameterTypes: true
- });
- Finch.call("/?x=123");
- Finch.call("/?x=123.456");
- Finch.call("/?x=true");
- Finch.call("/?x=false");
- Finch.call("/?x=stuff");
- Finch.route("/:x", function(_arg) {
- });
- Finch.call("/123");
- Finch.call("/123.456");
- Finch.call("/true");
- Finch.call("/false");
- Finch.call("/stuff");
- Finch.options({
- CoerceParameterTypes: true
- });
- Finch.call("/123");
- Finch.call("/123.456");
- Finch.call("/true");
- Finch.call("/false");
- Finch.call("/stuff");
-
- Finch.navigate("/home");
- Finch.navigate("/home/news");
- Finch.navigate("/home");
- Finch.navigate("/home", {
- foo: "bar"
- });
- Finch.navigate("/home", {
- hello: "world"
- });
- Finch.navigate({
- foos: "bars"
- });
- Finch.navigate({
- foos: "baz"
- });
- Finch.navigate({
- hello: "world"
- }, true);
- Finch.navigate({
- foos: null
- }, true);
- Finch.navigate("/home/news", true);
- Finch.navigate("/hello world", {});
- Finch.navigate("/hello world", {
- foo: "bar bar"
- });
- Finch.navigate({
- foo: "baz baz"
- });
- Finch.navigate({
- hello: 'world world'
- }, true);
- Finch.navigate("/home?foo=bar", {
- hello: "world"
- });
- Finch.navigate("/home?foo=bar", {
- hello: "world",
- foo: "baz"
- });
- Finch.navigate("/home?foo=bar", {
- hello: "world",
- free: "bird"
- });
- Finch.navigate("#/home", true);
- Finch.navigate("#/home");
- Finch.navigate("#/home/news", {
- free: "birds",
- hello: "worlds"
- });
- Finch.navigate("#/home/news", {
- foo: "bar"
- }, true);
- Finch.navigate("/home/news");
- Finch.navigate("../");
- Finch.navigate("./");
- Finch.navigate("./news");
- Finch.navigate("/home/news/article");
- Finch.navigate("../../account");
-
- Finch.listen();
- Finch.ignore();
- Finch.route("/home", function(bindings, continuation) {
- });
- Finch.route("/foo", function(bindings, continuation) {
- });
- Finch.call("home");
- Finch.call("foo");
- Finch.abort();
- Finch.call("foo");
- Finch.route("/", {
- 'setup': cb.slash_setup = this.stub(),
- 'load': cb.slash_load = this.stub(),
- 'unload': cb.slash_unload = this.stub(),
- 'teardown': cb.slash_teardown = this.stub()
- });
- Finch.route("[/]users/profile", {
- 'setup': cb.profile_setup = this.stub(),
- 'load': cb.profile_load = this.stub(),
- 'unload': cb.profile_unload = this.stub(),
- 'teardown': cb.profile_teardown = this.stub()
- });
- Finch.route("[/]:page", {
- 'setup': cb.page_setup = this.stub(),
- 'load': cb.page_load = this.stub(),
- 'unload': cb.page_unload = this.stub(),
- 'teardown': cb.page_teardown = this.stub()
- });
- Finch.call("/users");
-}
+///
+
+function test_Finch() {
+
+
+ Finch.route("Hello/Route", function() {
+ return console.log("Well hello there! How you doin'?!");
+ });
+
+ Finch.route("Hello/Route/:someId", function(bindings) {
+ return console.log("Hey! Here's Some Id: " + bindings.someId);
+ });
+
+ Finch.route("Hello/Route/:someId", function(bindings, childCallback) {
+ console.log("Hey! Here's Some Id: " + bindings.someId);
+ return childCallback();
+ });
+
+ Finch.route("some/route", {
+ setup: function(bindings) {
+ return console.log("Some Route has been setup! :)");
+ },
+ load: function(bindings) {
+ return console.log("Some Route has been loaed! :D");
+ },
+ unload: function(bindings) {
+ return console.log("Some Route has been loaed! :(");
+ },
+ teardown: function(bindings) {
+ return console.log("Some Route has been torndown! :'(");
+ }
+ });
+
+ Finch.route("some/route", {
+ setup: function(bindings, childCallback) {
+ console.log("Some Route has been setup! :)");
+ return childCallback();
+ },
+ load: function(bindings, childCallback) {
+ console.log("Some Route has been loaed! :D");
+ return childCallback();
+ },
+ unload: function(bindings, childCallback) {
+ console.log("Some Route has been loaed! :(");
+ return childCallback();
+ },
+ teardown: function(bindings, childCallback) {
+ console.log("Some Route has been torndown! :'(");
+ return childCallback();
+ }
+ });
+
+ Finch.call("Some/Route");
+
+ Finch.route("Some/Route", function() {
+ return Finch.observe("hello", "foo", function(hello: any, foo: string) {
+ return console.log("" + hello + " and " + foo);
+ });
+ });
+
+ Finch.route("Some/Route", function() {
+ return Finch.observe(["hello", "foo"], function(hello: any, foo: any) {
+ return console.log("" + hello + " and " + foo);
+ });
+ });
+
+ Finch.route("Some/Route", function(bindings) {
+ return Finch.observe(function(params) {
+ });
+ });
+
+ Finch.navigate("Some/Route");
+
+ Finch.navigate("Some/Route", {
+ hello: 'world',
+ foo: 'bar'
+ });
+
+ Finch.navigate("Some/Route", {
+ foo: 'bar'
+ }, true);
+
+ Finch.navigate("Some/Route", true);
+
+ Finch.navigate({
+ hello: 'world2',
+ wow: 'wee'
+ });
+
+ Finch.navigate({
+ foo: 'bar',
+ wow: 'wee!!!'
+ });
+
+ Finch.navigate({
+ hello: 'world2'
+ }, true);
+
+ Finch.listen();
+ Finch.ignore();
+ Finch.abort();
+
+
+ //test from Finch
+ Finch.call("/foo/bar");
+ Finch.call("/foo/bar/123");
+ Finch.call("/foo/bar/123");
+ Finch.call("/foo/bar/123?x=Hello&y=World");
+ Finch.call("/foo/baz/456");
+ Finch.call("/quux/789?band=Sunn O)))&genre=Post-Progressive Fridgecore");
+ Finch.call("/foo/bar/baz");
+ Finch.call("/foo/bar/quux");
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo");
+ Finch.call("/foo");
+ Finch.call("/");
+ Finch.call("/");
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo/bar?baz=quux");
+ Finch.call("/foo/bar?baz=xyzzy");
+
+ var cb: any;
+ Finch.route("foo", {
+ setup: cb.setup_foo = this.stub(),
+ load: cb.load_foo = this.stub(),
+ unload: cb.unload_foo = this.stub(),
+ teardown: cb.teardown_foo = this.stub()
+ });
+ Finch.route("[foo]/bar", {
+ setup: cb.setup_foo_bar = this.stub(),
+ load: cb.load_foo_bar = this.stub(),
+ unload: cb.unload_foo_bar = this.stub(),
+ teardown: cb.teardown_foo_bar = this.stub()
+ });
+ Finch.route("[foo/bar]/:id", {
+ setup: cb.setup_foo_bar_id = this.stub(),
+ load: cb.load_foo_bar_id = this.stub(),
+ unload: cb.unload_foo_bar_id = this.stub(),
+ teardown: cb.teardown_foo_bar_id = this.stub()
+ });
+ Finch.route("[foo]/baz", {
+ setup: cb.setup_foo_baz = this.stub(),
+ load: cb.load_foo_baz = this.stub(),
+ unload: cb.unload_foo_baz = this.stub(),
+ teardown: cb.teardown_foo_baz = this.stub()
+ });
+ Finch.route("[foo/baz]/:id", {
+ setup: cb.setup_foo_baz_id = this.stub(),
+ load: cb.load_foo_baz_id = this.stub(),
+ unload: cb.unload_foo_baz_id = this.stub(),
+ teardown: cb.teardown_foo_baz_id = this.stub()
+ });
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo");
+ Finch.call("/foo/bar/123?x=abc");
+ Finch.call("/foo/bar/456?x=aaa&y=zzz");
+ Finch.call("/foo/bar/456?x=bbb&y=zzz");
+ Finch.call("/foo/bar/456?y=zzz&x=bbb");
+ Finch.call("/foo/baz/789");
+ Finch.call("/foo/baz/abc?term=Hello");
+ Finch.call("/foo/baz/abc?term=World");
+ Finch.route("bar", this.stub());
+ Finch.call("/foo");
+ Finch.call("/bar");
+ Finch.route("/", function() {
+ });
+ Finch.route("[/]home", function() {
+ });
+ Finch.route("[/home]/news", {
+ setup: function() {
+ },
+ load: function() {
+ },
+ unload: function() {
+ return true;
+ },
+ teardown: function() {
+ return false;
+ }
+ });
+ Finch.route("/foo", {
+ setup: function() {
+ return true;
+ },
+ load: function() {
+ return true;
+ },
+ unload: function() {
+ },
+ teardown: function() {
+ }
+ });
+ Finch.route("[/]bar", {
+ setup: function() {
+ },
+ load: function() {
+ },
+ unload: function() {
+ },
+ teardown: function() {
+ }
+ });
+ Finch.call("/bar");
+ Finch.call("/home/news");
+ Finch.call("/foo");
+ Finch.call("/home/news");
+ Finch.call("/bar");
+ Finch.route("baz", this.stub());
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/baz");
+ Finch.route("/home", {
+ setup: function(bindings, next) {
+ return next();
+ },
+ load: function(bindings, next) {
+ return next();
+ },
+ unload: function(bindings, next) {
+ return next();
+ },
+ teardown: function(bindings, next) {
+ return next();
+ }
+ });
+ Finch.route("[/home]/news", {
+ setup: function(bindings, next) {
+ return next();
+ },
+ load: function(bindings, next) {
+ return next();
+ },
+ unload: function(bindings, next) {
+ return next();
+ },
+ teardown: function(bindings, next) {
+ return next();
+ }
+ });
+ Finch.call("/home");
+ Finch.call("/home/news");
+ Finch.call("/foo");
+
+ Finch.route("/", function(bindings) {
+ return Finch.observe(["x"], function(x) {
+ });
+ });
+ Finch.call("/?x=123");
+ Finch.call("/?x=123.456");
+ Finch.call("/?x=true");
+ Finch.call("/?x=false");
+ Finch.call("/?x=stuff");
+ Finch.options({
+ CoerceParameterTypes: true
+ });
+ Finch.call("/?x=123");
+ Finch.call("/?x=123.456");
+ Finch.call("/?x=true");
+ Finch.call("/?x=false");
+ Finch.call("/?x=stuff");
+ Finch.route("/:x", function(_arg) {
+ });
+ Finch.call("/123");
+ Finch.call("/123.456");
+ Finch.call("/true");
+ Finch.call("/false");
+ Finch.call("/stuff");
+ Finch.options({
+ CoerceParameterTypes: true
+ });
+ Finch.call("/123");
+ Finch.call("/123.456");
+ Finch.call("/true");
+ Finch.call("/false");
+ Finch.call("/stuff");
+
+ Finch.navigate("/home");
+ Finch.navigate("/home/news");
+ Finch.navigate("/home");
+ Finch.navigate("/home", {
+ foo: "bar"
+ });
+ Finch.navigate("/home", {
+ hello: "world"
+ });
+ Finch.navigate({
+ foos: "bars"
+ });
+ Finch.navigate({
+ foos: "baz"
+ });
+ Finch.navigate({
+ hello: "world"
+ }, true);
+ Finch.navigate({
+ foos: null
+ }, true);
+ Finch.navigate("/home/news", true);
+ Finch.navigate("/hello world", {});
+ Finch.navigate("/hello world", {
+ foo: "bar bar"
+ });
+ Finch.navigate({
+ foo: "baz baz"
+ });
+ Finch.navigate({
+ hello: 'world world'
+ }, true);
+ Finch.navigate("/home?foo=bar", {
+ hello: "world"
+ });
+ Finch.navigate("/home?foo=bar", {
+ hello: "world",
+ foo: "baz"
+ });
+ Finch.navigate("/home?foo=bar", {
+ hello: "world",
+ free: "bird"
+ });
+ Finch.navigate("#/home", true);
+ Finch.navigate("#/home");
+ Finch.navigate("#/home/news", {
+ free: "birds",
+ hello: "worlds"
+ });
+ Finch.navigate("#/home/news", {
+ foo: "bar"
+ }, true);
+ Finch.navigate("/home/news");
+ Finch.navigate("../");
+ Finch.navigate("./");
+ Finch.navigate("./news");
+ Finch.navigate("/home/news/article");
+ Finch.navigate("../../account");
+
+ Finch.listen();
+ Finch.ignore();
+ Finch.route("/home", function(bindings, continuation) {
+ });
+ Finch.route("/foo", function(bindings, continuation) {
+ });
+ Finch.call("home");
+ Finch.call("foo");
+ Finch.abort();
+ Finch.call("foo");
+ Finch.route("/", {
+ 'setup': cb.slash_setup = this.stub(),
+ 'load': cb.slash_load = this.stub(),
+ 'unload': cb.slash_unload = this.stub(),
+ 'teardown': cb.slash_teardown = this.stub()
+ });
+ Finch.route("[/]users/profile", {
+ 'setup': cb.profile_setup = this.stub(),
+ 'load': cb.profile_load = this.stub(),
+ 'unload': cb.profile_unload = this.stub(),
+ 'teardown': cb.profile_teardown = this.stub()
+ });
+ Finch.route("[/]:page", {
+ 'setup': cb.page_setup = this.stub(),
+ 'load': cb.page_load = this.stub(),
+ 'unload': cb.page_unload = this.stub(),
+ 'teardown': cb.page_teardown = this.stub()
+ });
+ Finch.call("/users");
+}
diff --git a/Finch/Finch.d.ts b/Finch/Finch.d.ts
index e3dd86c70..ca896570f 100644
--- a/Finch/Finch.d.ts
+++ b/Finch/Finch.d.ts
@@ -1,47 +1,47 @@
-// Type definitions for Finch 0.5.13
-// Project: https://github.com/stoodder/finchjs
-// Definitions by: David Sichau
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-
-interface FinchCallback {
- (bindings?: any, childCallback? : () => void): any;
-}
-
-interface ExpandedCallback {
- setup?: FinchCallback;
- load?: FinchCallback;
- unload?: FinchCallback;
- teardown?: FinchCallback;
-}
-
-interface ObserveCallback {
- (...args: any[]): string;
-}
-interface FinchOptions {
- CoerceParameterTypes?: boolean;
-}
-
-
-interface FinchStatic {
- route(route: string, callback: FinchCallback): void;
- route(route: string, callbacks: ExpandedCallback): void;
- call( uri: string ): void;
-
- observe(argN: string[], callback: (params: ObserveCallback ) => void): void;
- observe(callback: (params: ObserveCallback) => void): void;
- observe(...args: any[]): void;
- navigate(uri:string, queryParams?:any, doUpdate?:boolean ): void;
- navigate(uri:string, doUpdate:boolean ): void;
- navigate(queryParams:any, doUpdate?:boolean ): void;
- listen(): boolean;
- ignore(): boolean;
- abort(): void;
- options(options: FinchOptions): void;
-}
-
-
-declare var Finch: FinchStatic;
-declare module "finch" {
- export = Finch;
-}
+// Type definitions for Finch 0.5.13
+// Project: https://github.com/stoodder/finchjs
+// Definitions by: David Sichau
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+
+interface FinchCallback {
+ (bindings?: any, childCallback? : () => void): any;
+}
+
+interface ExpandedCallback {
+ setup?: FinchCallback;
+ load?: FinchCallback;
+ unload?: FinchCallback;
+ teardown?: FinchCallback;
+}
+
+interface ObserveCallback {
+ (...args: any[]): string;
+}
+interface FinchOptions {
+ CoerceParameterTypes?: boolean;
+}
+
+
+interface FinchStatic {
+ route(route: string, callback: FinchCallback): void;
+ route(route: string, callbacks: ExpandedCallback): void;
+ call( uri: string ): void;
+
+ observe(argN: string[], callback: (params: ObserveCallback ) => void): void;
+ observe(callback: (params: ObserveCallback) => void): void;
+ observe(...args: any[]): void;
+ navigate(uri:string, queryParams?:any, doUpdate?:boolean ): void;
+ navigate(uri:string, doUpdate:boolean ): void;
+ navigate(queryParams:any, doUpdate?:boolean ): void;
+ listen(): boolean;
+ ignore(): boolean;
+ abort(): void;
+ options(options: FinchOptions): void;
+}
+
+
+declare var Finch: FinchStatic;
+declare module "finch" {
+ export = Finch;
+}
diff --git a/accounting/accounting-tests.ts b/accounting/accounting-tests.ts
index a00f2fefc..bc9b74eaa 100644
--- a/accounting/accounting-tests.ts
+++ b/accounting/accounting-tests.ts
@@ -1,107 +1,107 @@
-///
-
-// formatMoney
-
-// Default usage:
-accounting.formatMoney(12345678); // $12,345,678.00
-
-// European formatting (custom symbol and separators), could also use options object as second param:
-accounting.formatMoney(4999.99, "€", 2, ".", ","); // €4.999,99
-
-// Negative values are formatted nicely, too:
-accounting.formatMoney(-500000, "£ ", 0); // £ -500,000
-
-// Simple `format` string allows control of symbol position [%v = value, %s = symbol]:
-accounting.formatMoney(5318008, { symbol: "GBP", format: "%v %s" }); // 5,318,008.00 GBP
-
-// Example usage with options object:
-accounting.formatMoney(5318008, {
- symbol: "GBP",
- precision: 0,
- thousand: "·",
- format: {
- pos: "%s %v",
- neg: "%s (%v)",
- zero: "%s --"
- }
-});
-
-// Will recursively format an array of values:
-accounting.formatMoney([123, 456, [78, 9]], "$", 0); // ["$123", "$456", ["$78", "$9"]]
-
-
-
-// formatColumn
-
-// Format list of numbers for display:
-accounting.formatColumn([123.5, 3456.49, 777888.99, 12345678, -5432], "$ ");
-
-// Example usage (NB. use a space after the symbol to add arbitrary padding to all values):
-accounting.formatColumn([123, 12345], "$ ", 0); // ["$ 123", "$ 12,345"]
-
-// List of numbers can be a multi-dimensional array (formatColumn is applied recursively):
-accounting.formatColumn([[1, 100], [900, 9]]); // [["$ 1.00", "$100.00"], ["$900.00", "$ 9.00"]]
-
-
-
-// formatNumber
-
-// Example usage:
-accounting.formatNumber(5318008); // 5,318,008
-accounting.formatNumber(9876543.21, 3, " "); // 9 876 543.210
-accounting.formatNumber(4999.99, 2, ".", ","); // 4.999,99
-
-// Example usage with options object:
-accounting.formatNumber(5318008, {
- precision: 3,
- thousand: " "
-});
-
-// Will recursively format an array of values:
-accounting.formatNumber([123456, [7890, 123]]); // ["123,456", ["7,890", "123"]]
-
-
-
-// toFixed
-
-(0.615).toFixed(2); // "0.61"
-accounting.toFixed(0.615, 2); // "0.62"
-
-
-
-
-// unformat
-
-// Example usage:
-accounting.unformat("£ 12,345,678.90 GBP"); // 12345678.9
-accounting.unformat("GBP £ 12,345,678.90"); // 12345678.9
-
-// If a non-standard decimal separator was used (eg. a comma) unformat() will need it in order to work out
-// which part of the number is a decimal/float:
-accounting.unformat("€ 1.000.000,00", ","); // 1000000
-
-// Settings object that controls default parameters for library methods:
-accounting.settings = {
- currency: {
- symbol: "$", // default currency symbol is '$'
- format: "%s%v", // controls output: %s = symbol, %v = value/number (can be object: see below)
- decimal: ".", // decimal point separator
- thousand: ",", // thousands separator
- precision: 2 // decimal places
- },
- number: {
- precision: 0, // default precision on numbers is 0
- thousand: ",",
- decimal: "."
- }
-};
-
-// These can be changed externally to edit the library's defaults:
-accounting.settings.currency.format = "%s %v";
-
-// Format can be an object, with `pos`, `neg` and `zero`:
-accounting.settings.currency.format = {
- pos: "%s %v", // for positive values, eg. "$ 1.00" (required)
- neg: "%s (%v)", // for negative values, eg. "$ (1.00)" [optional]
- zero: "%s -- " // for zero values, eg. "$ --" [optional]
-};
\ No newline at end of file
+///
+
+// formatMoney
+
+// Default usage:
+accounting.formatMoney(12345678); // $12,345,678.00
+
+// European formatting (custom symbol and separators), could also use options object as second param:
+accounting.formatMoney(4999.99, "€", 2, ".", ","); // €4.999,99
+
+// Negative values are formatted nicely, too:
+accounting.formatMoney(-500000, "£ ", 0); // £ -500,000
+
+// Simple `format` string allows control of symbol position [%v = value, %s = symbol]:
+accounting.formatMoney(5318008, { symbol: "GBP", format: "%v %s" }); // 5,318,008.00 GBP
+
+// Example usage with options object:
+accounting.formatMoney(5318008, {
+ symbol: "GBP",
+ precision: 0,
+ thousand: "·",
+ format: {
+ pos: "%s %v",
+ neg: "%s (%v)",
+ zero: "%s --"
+ }
+});
+
+// Will recursively format an array of values:
+accounting.formatMoney([123, 456, [78, 9]], "$", 0); // ["$123", "$456", ["$78", "$9"]]
+
+
+
+// formatColumn
+
+// Format list of numbers for display:
+accounting.formatColumn([123.5, 3456.49, 777888.99, 12345678, -5432], "$ ");
+
+// Example usage (NB. use a space after the symbol to add arbitrary padding to all values):
+accounting.formatColumn([123, 12345], "$ ", 0); // ["$ 123", "$ 12,345"]
+
+// List of numbers can be a multi-dimensional array (formatColumn is applied recursively):
+accounting.formatColumn([[1, 100], [900, 9]]); // [["$ 1.00", "$100.00"], ["$900.00", "$ 9.00"]]
+
+
+
+// formatNumber
+
+// Example usage:
+accounting.formatNumber(5318008); // 5,318,008
+accounting.formatNumber(9876543.21, 3, " "); // 9 876 543.210
+accounting.formatNumber(4999.99, 2, ".", ","); // 4.999,99
+
+// Example usage with options object:
+accounting.formatNumber(5318008, {
+ precision: 3,
+ thousand: " "
+});
+
+// Will recursively format an array of values:
+accounting.formatNumber([123456, [7890, 123]]); // ["123,456", ["7,890", "123"]]
+
+
+
+// toFixed
+
+(0.615).toFixed(2); // "0.61"
+accounting.toFixed(0.615, 2); // "0.62"
+
+
+
+
+// unformat
+
+// Example usage:
+accounting.unformat("£ 12,345,678.90 GBP"); // 12345678.9
+accounting.unformat("GBP £ 12,345,678.90"); // 12345678.9
+
+// If a non-standard decimal separator was used (eg. a comma) unformat() will need it in order to work out
+// which part of the number is a decimal/float:
+accounting.unformat("€ 1.000.000,00", ","); // 1000000
+
+// Settings object that controls default parameters for library methods:
+accounting.settings = {
+ currency: {
+ symbol: "$", // default currency symbol is '$'
+ format: "%s%v", // controls output: %s = symbol, %v = value/number (can be object: see below)
+ decimal: ".", // decimal point separator
+ thousand: ",", // thousands separator
+ precision: 2 // decimal places
+ },
+ number: {
+ precision: 0, // default precision on numbers is 0
+ thousand: ",",
+ decimal: "."
+ }
+};
+
+// These can be changed externally to edit the library's defaults:
+accounting.settings.currency.format = "%s %v";
+
+// Format can be an object, with `pos`, `neg` and `zero`:
+accounting.settings.currency.format = {
+ pos: "%s %v", // for positive values, eg. "$ 1.00" (required)
+ neg: "%s (%v)", // for negative values, eg. "$ (1.00)" [optional]
+ zero: "%s -- " // for zero values, eg. "$ --" [optional]
+};
diff --git a/accounting/accounting.d.ts b/accounting/accounting.d.ts
index ea861612b..675104047 100644
--- a/accounting/accounting.d.ts
+++ b/accounting/accounting.d.ts
@@ -3,28 +3,28 @@
// Definitions by: Sergey Gerasimov
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-interface IAccountingCurrencyFormat {
- pos: string; // for positive values, eg. "$ 1.00"
- neg?: string; // for negative values, eg. "$ (1.00)"
+interface IAccountingCurrencyFormat {
+ pos: string; // for positive values, eg. "$ 1.00"
+ neg?: string; // for negative values, eg. "$ (1.00)"
zero?: string; // for zero values, eg. "$ --"
}
-interface IAccountingCurrencySettings {
- symbol?: string; // default currency symbol is '$'
- format?: TFormat; // controls output: %s = symbol, %v = value/number
- decimal?: string; // decimal point separator
- thousand?: string; // thousands separator
+interface IAccountingCurrencySettings {
+ symbol?: string; // default currency symbol is '$'
+ format?: TFormat; // controls output: %s = symbol, %v = value/number
+ decimal?: string; // decimal point separator
+ thousand?: string; // thousands separator
precision?: number // decimal places
}
-interface IAccountingNumberSettings {
- precision?: number; // default precision on numbers is 0
- thousand?: string;
- decimal?: string;
+interface IAccountingNumberSettings {
+ precision?: number; // default precision on numbers is 0
+ thousand?: string;
+ decimal?: string;
}
-interface IAccountingSettings {
- currency: IAccountingCurrencySettings; // IAccountingCurrencySettings or IAccountingCurrencySettings
+interface IAccountingSettings {
+ currency: IAccountingCurrencySettings; // IAccountingCurrencySettings or IAccountingCurrencySettings
number: IAccountingNumberSettings;
}
@@ -76,4 +76,4 @@ declare var accounting: IAccountingStatic;
declare module "accounting" {
export = accounting;
-}
\ No newline at end of file
+}
diff --git a/ace/all-tests.ts.tscparams b/ace/all-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/all-tests.ts.tscparams
+++ b/ace/all-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-anchor-tests.ts.tscparams b/ace/tests/ace-anchor-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-anchor-tests.ts.tscparams
+++ b/ace/tests/ace-anchor-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-background_tokenizer-tests.ts.tscparams b/ace/tests/ace-background_tokenizer-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-background_tokenizer-tests.ts.tscparams
+++ b/ace/tests/ace-background_tokenizer-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-default-tests.ts.tscparams b/ace/tests/ace-default-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-default-tests.ts.tscparams
+++ b/ace/tests/ace-default-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-document-tests.ts.tscparams b/ace/tests/ace-document-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-document-tests.ts.tscparams
+++ b/ace/tests/ace-document-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-edit_session-tests.ts.tscparams b/ace/tests/ace-edit_session-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-edit_session-tests.ts.tscparams
+++ b/ace/tests/ace-edit_session-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-editor1-tests.ts.tscparams b/ace/tests/ace-editor1-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-editor1-tests.ts.tscparams
+++ b/ace/tests/ace-editor1-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-editor_highlight_selected_word-tests.ts.tscparams b/ace/tests/ace-editor_highlight_selected_word-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-editor_highlight_selected_word-tests.ts.tscparams
+++ b/ace/tests/ace-editor_highlight_selected_word-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-editor_navigation-tests.ts.tscparams b/ace/tests/ace-editor_navigation-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-editor_navigation-tests.ts.tscparams
+++ b/ace/tests/ace-editor_navigation-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-multi_select-tests.ts.tscparams b/ace/tests/ace-multi_select-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-multi_select-tests.ts.tscparams
+++ b/ace/tests/ace-multi_select-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-placeholder-tests.ts.tscparams b/ace/tests/ace-placeholder-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-placeholder-tests.ts.tscparams
+++ b/ace/tests/ace-placeholder-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-range_list-tests.ts.tscparams b/ace/tests/ace-range_list-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-range_list-tests.ts.tscparams
+++ b/ace/tests/ace-range_list-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-selection-tests.ts.tscparams b/ace/tests/ace-selection-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-selection-tests.ts.tscparams
+++ b/ace/tests/ace-selection-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-token_iterator-tests.ts.tscparams b/ace/tests/ace-token_iterator-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-token_iterator-tests.ts.tscparams
+++ b/ace/tests/ace-token_iterator-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/ace/tests/ace-virtual_renderer-tests.ts.tscparams b/ace/tests/ace-virtual_renderer-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/ace/tests/ace-virtual_renderer-tests.ts.tscparams
+++ b/ace/tests/ace-virtual_renderer-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/amcharts/AmCharts.d.ts.tscparams b/amcharts/AmCharts.d.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/amcharts/AmCharts.d.ts.tscparams
+++ b/amcharts/AmCharts.d.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/amplifyjs/amplifyjs-tests.ts.tscparams b/amplifyjs/amplifyjs-tests.ts.tscparams
index d3f5a12fa..8b1378917 100644
--- a/amplifyjs/amplifyjs-tests.ts.tscparams
+++ b/amplifyjs/amplifyjs-tests.ts.tscparams
@@ -1 +1 @@
-
+
diff --git a/angular-google-analytics/angular-google-analytics-service.d.ts b/angular-google-analytics/angular-google-analytics-service.d.ts
index 5f478621c..e69b63d90 100644
--- a/angular-google-analytics/angular-google-analytics-service.d.ts
+++ b/angular-google-analytics/angular-google-analytics-service.d.ts
@@ -1,62 +1,62 @@
-// Type definitions for angular-google-analytics v1.1.0
-// Project: https://github.com/revolunet/angular-google-analytics
-// Definitions by: Matt Wheatley
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-declare module angular.google.analytics {
- interface AnalyticsService {
- /**
- * @summary If logging is enabled then all outbound calls are accessible via an in-memory array.
- * This is useful for troubleshooting and seeing the order of outbound calls with parameters.
- */
- log: Array