mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 17:08:21 +08:00
tslint added
This commit is contained in:
42
siema/index.d.ts
vendored
42
siema/index.d.ts
vendored
@@ -1,28 +1,26 @@
|
||||
// Type definitions for siema
|
||||
// Type definitions for siema 1.0
|
||||
// Project: https://github.com/pawelgrzybek/siema
|
||||
// Definitions by: Irmantas Zenkus <https://github.com/Irmiz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare module 'siema' {
|
||||
interface SiemaOptions {
|
||||
selector?: string;
|
||||
duration?: number;
|
||||
easing?: string;
|
||||
perPage?: number;
|
||||
startIndex?: number;
|
||||
draggable?: boolean;
|
||||
threshold?: number;
|
||||
loop?: boolean;
|
||||
}
|
||||
declare class Siema {
|
||||
currentSlide: number;
|
||||
|
||||
class Siema {
|
||||
public currentSlide: number;
|
||||
constructor(options?: SiemaOptions);
|
||||
|
||||
constructor(options?: SiemaOptions);
|
||||
|
||||
public next(): void;
|
||||
public prev(): void;
|
||||
public goTo(index: number): void;
|
||||
}
|
||||
|
||||
export = Siema;
|
||||
next(): void;
|
||||
prev(): void;
|
||||
goTo(index: number): void;
|
||||
}
|
||||
|
||||
interface SiemaOptions {
|
||||
selector?: string;
|
||||
duration?: number;
|
||||
easing?: string;
|
||||
perPage?: number;
|
||||
startIndex?: number;
|
||||
draggable?: boolean;
|
||||
threshold?: number;
|
||||
loop?: boolean;
|
||||
}
|
||||
|
||||
export = Siema;
|
||||
|
||||
@@ -13,5 +13,4 @@ const siema = new Siema({
|
||||
|
||||
siema.next();
|
||||
siema.prev();
|
||||
siema.goTo(0);
|
||||
siema.currentSlide;
|
||||
siema.goTo(siema.currentSlide);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
3
siema/tslint.json
Normal file
3
siema/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../tslint.json"
|
||||
}
|
||||
Reference in New Issue
Block a user