mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Merge pull request #11764 from rogierschouten/resemblejs
resemblejs typings did not work at all
This commit is contained in:
commit
ecf2de71db
2
phantomcss/index.d.ts
vendored
2
phantomcss/index.d.ts
vendored
@ -138,7 +138,7 @@ declare namespace PhantomCSS {
|
||||
prefixCount?: boolean;
|
||||
|
||||
hideElements?: string;
|
||||
outputSettings?: Resemble.OutputSettings;
|
||||
outputSettings?: resemble.OutputSettings;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
27
resemblejs/index.d.ts
vendored
27
resemblejs/index.d.ts
vendored
@ -3,18 +3,19 @@
|
||||
// Definitions by: Tim Perry <https://github.com/pimterry>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Resemble {
|
||||
interface ResembleStatic {
|
||||
/**
|
||||
* Retrieve basic analysis for a single image (add compareTo to compare with another).
|
||||
*/
|
||||
(image: string|ImageData): ResembleAnalysis;
|
||||
export = Resemble;
|
||||
export as namespace resemble;
|
||||
|
||||
/**
|
||||
* Set the resemblance image output style
|
||||
*/
|
||||
outputSettings(settings: OutputSettings): ResembleStatic;
|
||||
}
|
||||
/**
|
||||
* Retrieve basic analysis for a single image (add compareTo to compare with another).
|
||||
*/
|
||||
declare function Resemble(image: string | ImageData): Resemble.ResembleAnalysis;
|
||||
|
||||
declare namespace Resemble {
|
||||
/**
|
||||
* Set the resemblance image output style
|
||||
*/
|
||||
function outputSettings(settings: OutputSettings): typeof Resemble;
|
||||
|
||||
interface OutputSettings {
|
||||
errorColor: {
|
||||
@ -36,7 +37,7 @@ declare namespace Resemble {
|
||||
/**
|
||||
* Compare this image to another image, to get resemblance data
|
||||
*/
|
||||
compareTo(fileData: string|ImageData): ResembleComparison;
|
||||
compareTo(fileData: string | ImageData): ResembleComparison;
|
||||
}
|
||||
|
||||
interface ResembleAnalysisResult {
|
||||
@ -93,5 +94,3 @@ declare namespace Resemble {
|
||||
analysisTime: number;
|
||||
}
|
||||
}
|
||||
|
||||
declare var resemble: Resemble.ResembleStatic;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user