fix gifffer

This commit is contained in:
William Lohan
2018-02-13 13:14:42 -08:00
parent 829b005fc6
commit 2664a12fa0
3 changed files with 16 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import Gifffer from 'gifffer';
import * as Gifffer from 'gifffer';
let gifs: HTMLButtonElement[];

View File

@@ -3,15 +3,21 @@
// Definitions by: William Lohan <https://github.com/gatimus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* @see {@link https://github.com/krasimir/gifffer#styling|Styling}
*/
export interface GiffferOptions {
playButtonStyles: { [style: string]: string; };
playButtonIconStyles: { [style: string]: string; };
declare namespace Gifffer {
/**
* @see {@link https://github.com/krasimir/gifffer#styling|Styling}
*/
interface GiffferOptions {
playButtonStyles: { [style: string]: string; };
playButtonIconStyles: { [style: string]: string; };
}
}
/**
* @see {@link https://github.com/krasimir/gifffer#usage|Usage}
*/
export default function Gifffer(options?: GiffferOptions): HTMLButtonElement[];
declare function Gifffer(options?: Gifffer.GiffferOptions): HTMLButtonElement[];
export as namespace Gifffer;
export = Gifffer;

View File

@@ -15,11 +15,10 @@
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"gifffer-tests.ts"
]
}
}