tslint added

This commit is contained in:
Irmantas Zenkus
2017-01-06 08:41:25 +02:00
parent 7655929542
commit 033237bd3a
4 changed files with 25 additions and 25 deletions

42
siema/index.d.ts vendored
View File

@@ -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;

View File

@@ -13,5 +13,4 @@ const siema = new Siema({
siema.next();
siema.prev();
siema.goTo(0);
siema.currentSlide;
siema.goTo(siema.currentSlide);

View File

@@ -4,7 +4,7 @@
"target": "es6",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"

3
siema/tslint.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "../tslint.json"
}