mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// Type definitions for galleria.js v1.4.2
|
|
// Project: https://github.com/aino/galleria
|
|
// Definitions by: Robert Imig <https://github.com/rimig>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace GalleriaJS {
|
|
|
|
interface GalleriaOptions {
|
|
dataSource: GalleriaEntry[];
|
|
autoplay?: boolean;
|
|
lightbox?: boolean;
|
|
}
|
|
|
|
interface GalleriaEntry {
|
|
image?: string;
|
|
thumbnail?: string;
|
|
title?: string;
|
|
description?: string;
|
|
}
|
|
|
|
interface GalleriaFactory {
|
|
run(): GalleriaFactory;
|
|
run(selector: String): GalleriaFactory;
|
|
run(selector: String, options: GalleriaOptions): GalleriaFactory;
|
|
|
|
loadTheme(url : String): GalleriaFactory;
|
|
configure(options: GalleriaOptions): GalleriaFactory;
|
|
|
|
ready( method: () => any): void;
|
|
|
|
refreshImage(): GalleriaFactory;
|
|
resize(): GalleriaFactory;
|
|
load( data: GalleriaEntry[]): GalleriaFactory;
|
|
setOptions( options: GalleriaOptions): GalleriaFactory;
|
|
}
|
|
|
|
}
|
|
|
|
declare var Galleria: GalleriaJS.GalleriaFactory;
|