From 63032e4a21c1fc189688e11c465132ee356dd172 Mon Sep 17 00:00:00 2001 From: Julien P Date: Tue, 26 Jan 2016 14:24:06 +0100 Subject: [PATCH] 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 --- blazy/blazy-tests.ts | 2 +- blazy/blazy.d.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blazy/blazy-tests.ts b/blazy/blazy-tests.ts index 700860d87..6e95801e9 100644 --- a/blazy/blazy-tests.ts +++ b/blazy/blazy-tests.ts @@ -1,7 +1,7 @@ /// /* Constructor test */ -var tester: IBlazyInstance = new Blazy({ +var tester: BlazyInstance = new Blazy({ breakpoints: [ { width: 420, diff --git a/blazy/blazy.d.ts b/blazy/blazy.d.ts index 49434d3b4..cb4747d6f 100644 --- a/blazy/blazy.d.ts +++ b/blazy/blazy.d.ts @@ -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; }