Skip to content

Commit

Permalink
Update after PR review, fix function parameter
Browse files Browse the repository at this point in the history
- Remove prefix `I` for interfaces as suggested by reviewer
- Remove NodeList type for success function parameter since it's not relevant
  • Loading branch information
Julien P committed Jan 26, 2016
1 parent ea18400 commit 63032e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion blazy/blazy-tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="blazy.d.ts" />

/* Constructor test */
var tester: IBlazyInstance = new Blazy({
var tester: BlazyInstance = new Blazy({
breakpoints: [
{
width: 420,
Expand Down
12 changes: 6 additions & 6 deletions blazy/blazy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -34,15 +34,15 @@ interface IBlazyOptions {

src: string;

success: (ele: Element|HTMLElement|NodeList) => void;
success: (ele: Element|HTMLElement) => void;

successClass: string;

validateDelay: number;

}

interface IBlazyInstance {
interface BlazyInstance {

/**
* Revalidates document for visible images. Useful if you add images with scripting or ajax.
Expand All @@ -62,7 +62,7 @@ interface IBlazyInstance {

}

interface IBreakpoint {
interface Breakpoint {
width: number;
src: string;
}
Expand Down

0 comments on commit 63032e4

Please sign in to comment.