diff --git a/fingerprintjs2/fingerprint2-tests.ts b/fingerprintjs2/fingerprint2-tests.ts new file mode 100644 index 000000000..7f4baf756 --- /dev/null +++ b/fingerprintjs2/fingerprint2-tests.ts @@ -0,0 +1,15 @@ +// Type definitions for fingerprintjs2 1.0.0-rc3 +// Project: https://github.com/Valve/fingerprintjs2 +// Definitions by: Sam Vloeberghs +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +let f2 = new Fingerprint2.Fingerprint2(); +f2.get((result:string, components:Array) => { + +}); + +let options = {}; +let f2withOptions = new Fingerprint2.Fingerprint2(options); +f2withOptions.get((result:string, components:Array) => { + +}); diff --git a/fingerprintjs2/fingerprint2.d.ts b/fingerprintjs2/fingerprint2.d.ts new file mode 100644 index 000000000..87150da3d --- /dev/null +++ b/fingerprintjs2/fingerprint2.d.ts @@ -0,0 +1,50 @@ +// Type definitions for fingerprintjs2 1.0.0-rc3 +// Project: https://github.com/Valve/fingerprintjs2 +// Definitions by: Sam Vloeberghs +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module Fingerprint2Js { + + interface Fingerprint2Static { + new(option?:Fingerprint2Option): Fingerprint2; + } + + interface Fingerprint2 { + get(func:(result:string, components:Array) => void): void; + } + + interface Fingerprint2Option { + swfContainerId?: string; + swfPath?: string; + excludeUserAgent?: boolean; + excludeLanguage?: boolean; + excludeColorDepth?: boolean; + excludeScreenResolution?: boolean; + excludeTimezoneOffset?: boolean; + excludeSessionStorage?: boolean; + excludeIndexedDB?: boolean; + excludeAddBehavior?: boolean; + excludeOpenDatabase?: boolean; + excludeCpuClass?: boolean; + excludePlatform?: boolean; + excludeDoNotTrack?: boolean; + excludeCanvas?: boolean; + excludeWebGL?: boolean; + excludeAdBlock?: boolean; + excludeHasLiedLanguages?: boolean; + excludeHasLiedResolution?: boolean; + excludeHasLiedOs?: boolean; + excludeHasLiedBrowser?: boolean; + excludeJsFonts?: boolean; + excludeFlashFonts?: boolean; + excludePlugins?: boolean; + excludeTouchSupport?: boolean; + } + +} + +declare var Fingerprint2:Fingerprint2Js.Fingerprint2Static; + +declare module "Fingerprint2" { + export = Fingerprint2; +} diff --git a/foundation-sites/foundation-sites.d.ts b/foundation-sites/foundation-sites.d.ts index 6cf091da4..55070df14 100644 --- a/foundation-sites/foundation-sites.d.ts +++ b/foundation-sites/foundation-sites.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Foundation Sites v6.1.x +// Type definitions for Foundation Sites v6.1.1 // Project: http://foundation.zurb.com/ // Definitions by: Sam Vloeberghs // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -194,7 +194,6 @@ declare module FoundationSites { position?: string; forceTop?: boolean; isRevealed?: boolean; - isRevealed?: boolean; revealOn?: string; autoFocus?: boolean; revealClass?: string; @@ -378,8 +377,8 @@ declare module FoundationSites { } interface Nest { - Feather(menu:any, type:any); - Burn(menu:any, type:any); + Feather(menu:any, type:any):void; + Burn(menu:any, type:any):void; } interface Timer {