Update after PR review, fix function parameter

- Remove prefix `I` for interfaces as suggested by reviewer
- Remove NodeList type for success function parameter since it's not relevant
This commit is contained in:
Julien P
2016-01-26 14:24:06 +01:00
parent ea18400bca
commit 63032e4a21
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/// <reference path="blazy.d.ts" />
/* Constructor test */
var tester: IBlazyInstance = new Blazy({
var tester: BlazyInstance = new Blazy({
breakpoints: [
{
width: 420,
+6 -6
View File
@@ -8,13 +8,13 @@ declare var Blazy: Blazy;
interface Blazy {
new (options: IBlazyOptions): IBlazyInstance;
new (options: BlazyOptions): BlazyInstance;
}
interface IBlazyOptions {
interface BlazyOptions {
breakpoints: IBreakpoint[];
breakpoints: Breakpoint[];
container: string;
@@ -34,7 +34,7 @@ interface IBlazyOptions {
src: string;
success: (ele: Element|HTMLElement|NodeList) => void;
success: (ele: Element|HTMLElement) => void;
successClass: string;
@@ -42,7 +42,7 @@ interface IBlazyOptions {
}
interface IBlazyInstance {
interface BlazyInstance {
/**
* Revalidates document for visible images. Useful if you add images with scripting or ajax.
@@ -62,7 +62,7 @@ interface IBlazyInstance {
}
interface IBreakpoint {
interface Breakpoint {
width: number;
src: string;
}