From 359fb827eefa3faf1cc438d3dbac6ef697ed56d9 Mon Sep 17 00:00:00 2001 From: stephenlautier Date: Thu, 17 Apr 2014 23:14:33 +0200 Subject: [PATCH 1/3] added URITemplate for urijs and knockout.punches - added UriTemplate class + expand method for urijs - added knockout.punches module + enableAll --- knockout.punches/knockout.punches.d.ts | 13 +++++++++++++ urijs/URITemplate.d.ts | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 knockout.punches/knockout.punches.d.ts create mode 100644 urijs/URITemplate.d.ts diff --git a/knockout.punches/knockout.punches.d.ts b/knockout.punches/knockout.punches.d.ts new file mode 100644 index 000000000..0d500104b --- /dev/null +++ b/knockout.punches/knockout.punches.d.ts @@ -0,0 +1,13 @@ +interface KnockoutPunchesStatic { + enableAll(): void; +} + +interface KnockoutStatic { + punches: KnockoutPunchesStatic; +} + +declare module "knockout.punches" { + export = punches; +} + +declare var punches: KnockoutPunchesStatic; \ No newline at end of file diff --git a/urijs/URITemplate.d.ts b/urijs/URITemplate.d.ts new file mode 100644 index 000000000..de4096e19 --- /dev/null +++ b/urijs/URITemplate.d.ts @@ -0,0 +1,5 @@ +declare class URITemplate{ + constructor(); + constructor(template: string); + expand(vals: Object): string; +} \ No newline at end of file From 0e75ece1a41046353951cc1548c3130baeef4d76 Mon Sep 17 00:00:00 2001 From: "stephen.lautier" Date: Sat, 25 Apr 2015 12:29:03 +0200 Subject: [PATCH 2/3] added knockout.punches-tests + headers to type definitions --- knockout.punches/knockout.punches-tests.ts | 8 ++++++++ knockout.punches/knockout.punches.d.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 knockout.punches/knockout.punches-tests.ts diff --git a/knockout.punches/knockout.punches-tests.ts b/knockout.punches/knockout.punches-tests.ts new file mode 100644 index 000000000..bd5d53a5c --- /dev/null +++ b/knockout.punches/knockout.punches-tests.ts @@ -0,0 +1,8 @@ +/// + + +function test_enable() { + + ko.punches.enableAll(); + +} \ No newline at end of file diff --git a/knockout.punches/knockout.punches.d.ts b/knockout.punches/knockout.punches.d.ts index 0d500104b..d219d61f1 100644 --- a/knockout.punches/knockout.punches.d.ts +++ b/knockout.punches/knockout.punches.d.ts @@ -1,4 +1,11 @@ -interface KnockoutPunchesStatic { +// Type definitions for knockout.punches 0.5.1 +// Project: https://github.com/mbest/knockout.punches +// Definitions by: Stephen Lautier +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +interface KnockoutPunchesStatic { enableAll(): void; } From 4c3555871fcf212eea2d4bd561a248bd78990c73 Mon Sep 17 00:00:00 2001 From: "stephen.lautier" Date: Sat, 25 Apr 2015 12:46:56 +0200 Subject: [PATCH 3/3] removed urijs --- urijs/URITemplate.d.ts | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 urijs/URITemplate.d.ts diff --git a/urijs/URITemplate.d.ts b/urijs/URITemplate.d.ts deleted file mode 100644 index de4096e19..000000000 --- a/urijs/URITemplate.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare class URITemplate{ - constructor(); - constructor(template: string); - expand(vals: Object): string; -} \ No newline at end of file