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 diff --git a/dropzone/dropzone.d.ts b/dropzone/dropzone.d.ts index 5dca7e169..655db6220 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; @@ -39,7 +39,7 @@ interface DropzoneOptions { forceFallback?: boolean; fallback?: () => void; - // dictionary options + // dictionary options dictDefaultMessage?: string; dictFallbackMessage?: string; dictFallbackText?: string; @@ -66,13 +66,13 @@ declare class Dropzone { off(eventName): void; removeFile(file: DropzoneFile): void; - removeAllFiles(): void; + removeAllFiles(cancelIfNecessary?: boolean): void; processQueue(): void; getAcceptedFiles(): DropzoneFile[]; 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); 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; } /** 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 { diff --git a/stripe/stripe.d.ts b/stripe/stripe.d.ts index f5c1b3ff0..2d5005618 100644 --- a/stripe/stripe.d.ts +++ b/stripe/stripe.d.ts @@ -1,16 +1,16 @@ -// Type definitions for stripe +// Type definitions for stripe // Project: https://stripe.com/ // Definitions by: Eric J. Smith // Definitions: https://github.com/borisyankov/DefinitelyTyped 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; cardType(cardNumber: string): string; getToken(token: string, responseHandler: (status: number, response: StripeTokenResponse) => void); + card: StripeCardData; } interface StripeTokenData { @@ -57,6 +57,8 @@ 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;