mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
fix gifffer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Gifffer from 'gifffer';
|
||||
import * as Gifffer from 'gifffer';
|
||||
|
||||
let gifs: HTMLButtonElement[];
|
||||
|
||||
|
||||
20
types/gifffer/index.d.ts
vendored
20
types/gifffer/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gifffer-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user