From 359fb827eefa3faf1cc438d3dbac6ef697ed56d9 Mon Sep 17 00:00:00 2001 From: stephenlautier Date: Thu, 17 Apr 2014 23:14:33 +0200 Subject: [PATCH] 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