From ddc41566fd3829ad33164e0431c36f3157eb1168 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Wed, 10 Dec 2014 15:25:58 -0500 Subject: [PATCH 1/8] Fixes bug in grunt definitions Removes `pkg` property from `IProjectConfig` interface (the config object passed to `grunt.initConfig`) because it is not necessary; it is merely a commonly-used convention. --- gruntjs/gruntjs.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gruntjs/gruntjs.d.ts b/gruntjs/gruntjs.d.ts index 8efa08ef6..7de19d016 100644 --- a/gruntjs/gruntjs.d.ts +++ b/gruntjs/gruntjs.d.ts @@ -122,8 +122,7 @@ declare module grunt { * {@link http://gruntjs.com/sample-gruntfile} */ interface IProjectConfig{ - [plugin: string]: any - pkg: any; // unfortunate. It is actually a string + [plugin: string]: any; } /** From 7f3c985d438d519e46fc284a54747f6ee6094a65 Mon Sep 17 00:00:00 2001 From: ianschmitz Date: Wed, 10 Dec 2014 16:57:40 -0800 Subject: [PATCH 2/8] Update stripe.d.ts Edited definition file to align with: https://stripe.com/docs/stripe.js#createToken --- stripe/stripe.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stripe/stripe.d.ts b/stripe/stripe.d.ts index f5c1b3ff0..6d2080b85 100644 --- a/stripe/stripe.d.ts +++ b/stripe/stripe.d.ts @@ -5,7 +5,6 @@ interface StripeStatic { setPublishableKey(key: string); - createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void); validateCardNumber(cardNumber: string): boolean; validateExpiry(month: string, year: string): boolean; validateCVC(cardCVC: string): boolean; @@ -57,6 +56,7 @@ interface StripeCardData { address_state?: string; address_zip?: string; address_country?: string; + createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void); } -declare var Stripe: StripeStatic; \ No newline at end of file +declare var Stripe: StripeStatic; From 866c253cbdc0e47704fb741f29cebf74ab0ac300 Mon Sep 17 00:00:00 2001 From: ianschmitz Date: Thu, 11 Dec 2014 11:11:03 -0800 Subject: [PATCH 3/8] Update stripe.d.ts Forgot to add "card" to the StripeStatic interface. --- stripe/stripe.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stripe/stripe.d.ts b/stripe/stripe.d.ts index 6d2080b85..2d5005618 100644 --- a/stripe/stripe.d.ts +++ b/stripe/stripe.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stripe +// Type definitions for stripe // Project: https://stripe.com/ // Definitions by: Eric J. Smith // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -10,6 +10,7 @@ interface StripeStatic { validateCVC(cardCVC: string): boolean; cardType(cardNumber: string): string; getToken(token: string, responseHandler: (status: number, response: StripeTokenResponse) => void); + card: StripeCardData; } interface StripeTokenData { @@ -56,6 +57,7 @@ interface StripeCardData { address_state?: string; address_zip?: string; address_country?: string; + createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void); } From d519d54b466c211b651b42ddea76b1854dda4438 Mon Sep 17 00:00:00 2001 From: Joe Schafer Date: Sat, 13 Dec 2014 13:50:59 -0500 Subject: [PATCH 4/8] Dropzone: allow clickable to be a string --- dropzone/dropzone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropzone/dropzone.d.ts b/dropzone/dropzone.d.ts index 5dca7e169..d41a614d8 100644 --- a/dropzone/dropzone.d.ts +++ b/dropzone/dropzone.d.ts @@ -24,7 +24,7 @@ interface DropzoneOptions { headers?: any; addRemoveLinks?: boolean; previewsContainer?: string; - clickable?: boolean; + clickable?: any; createImageThumbnails?: boolean; maxThumbnailFilesize?: number; thumbnailWidth?: number; From bfa1e4a2cd80f90ab0d840d4ee67f6ee0ddd8adc Mon Sep 17 00:00:00 2001 From: Joe Schafer Date: Sat, 13 Dec 2014 13:51:23 -0500 Subject: [PATCH 5/8] Dropzone: remove trailing whitespace --- dropzone/dropzone.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropzone/dropzone.d.ts b/dropzone/dropzone.d.ts index d41a614d8..876dc77c5 100644 --- a/dropzone/dropzone.d.ts +++ b/dropzone/dropzone.d.ts @@ -39,7 +39,7 @@ interface DropzoneOptions { forceFallback?: boolean; fallback?: () => void; - // dictionary options + // dictionary options dictDefaultMessage?: string; dictFallbackMessage?: string; dictFallbackText?: string; @@ -72,7 +72,7 @@ declare class Dropzone { getRejectedFiles(): DropzoneFile[]; getQueuedFiles(): DropzoneFile[]; getUploadingFiles(): DropzoneFile[]; - + emit(eventName: string, file: DropzoneFile, str?: string); emit(eventName: "thumbnail", file: DropzoneFile, path: string); emit(eventName: "addedfile", file: DropzoneFile); From 5e2e2ef6d2e0ad7320d6210ea07d804718dc1c14 Mon Sep 17 00:00:00 2001 From: Joe Schafer Date: Sat, 13 Dec 2014 14:19:01 -0500 Subject: [PATCH 6/8] Dropzone: add cancelIfNecessary to removeAllFiles --- dropzone/dropzone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropzone/dropzone.d.ts b/dropzone/dropzone.d.ts index 876dc77c5..655db6220 100644 --- a/dropzone/dropzone.d.ts +++ b/dropzone/dropzone.d.ts @@ -66,7 +66,7 @@ declare class Dropzone { off(eventName): void; removeFile(file: DropzoneFile): void; - removeAllFiles(): void; + removeAllFiles(cancelIfNecessary?: boolean): void; processQueue(): void; getAcceptedFiles(): DropzoneFile[]; getRejectedFiles(): DropzoneFile[]; From 70ef283d9d9f5672ddebfac264d5c5dda555eda2 Mon Sep 17 00:00:00 2001 From: basarat Date: Sun, 14 Dec 2014 18:31:25 +1100 Subject: [PATCH 7/8] chore(angular-scenario) moved angular-scenario into its own folder (and hence nuget package). Closes # 1159 --- {angularjs => angular-scenario}/angular-scenario.d.ts | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {angularjs => angular-scenario}/angular-scenario.d.ts (100%) diff --git a/angularjs/angular-scenario.d.ts b/angular-scenario/angular-scenario.d.ts similarity index 100% rename from angularjs/angular-scenario.d.ts rename to angular-scenario/angular-scenario.d.ts From 114d68a0726ab107c2a9a5d858e006fb8e1be606 Mon Sep 17 00:00:00 2001 From: psnider Date: Sun, 14 Dec 2014 21:47:05 +0000 Subject: [PATCH 8/8] Added mongoose.Types.ObjectId.toHexString() --- mongoose/mongoose-tests.ts | 2 ++ mongoose/mongoose.d.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mongoose/mongoose-tests.ts b/mongoose/mongoose-tests.ts index 38c469ca1..1c8b804d6 100644 --- a/mongoose/mongoose-tests.ts +++ b/mongoose/mongoose-tests.ts @@ -364,3 +364,5 @@ schema.virtual('display_name') .get(function(): string { return this.name; }) .set((value: string): void => {}); +var id : mongoose.Types.ObjectId; +var s = id.toHexString(); diff --git a/mongoose/mongoose.d.ts b/mongoose/mongoose.d.ts index abfd5625e..3cd48c5ec 100644 --- a/mongoose/mongoose.d.ts +++ b/mongoose/mongoose.d.ts @@ -78,7 +78,9 @@ declare module "mongoose" { set(fn: Function): VirtualType; } export module Types { - export class ObjectId {} + export class ObjectId { + toHexString(): string; + } } export class Schema {