Skip to content

Commit 63032e4

Browse files
author
Julien P
committed
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
1 parent ea18400 commit 63032e4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

blazy/blazy-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path="blazy.d.ts" />
22

33
/* Constructor test */
4-
var tester: IBlazyInstance = new Blazy({
4+
var tester: BlazyInstance = new Blazy({
55
breakpoints: [
66
{
77
width: 420,

blazy/blazy.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ declare var Blazy: Blazy;
88

99
interface Blazy {
1010

11-
new (options: IBlazyOptions): IBlazyInstance;
11+
new (options: BlazyOptions): BlazyInstance;
1212

1313
}
1414

15-
interface IBlazyOptions {
15+
interface BlazyOptions {
1616

17-
breakpoints: IBreakpoint[];
17+
breakpoints: Breakpoint[];
1818

1919
container: string;
2020

@@ -34,15 +34,15 @@ interface IBlazyOptions {
3434

3535
src: string;
3636

37-
success: (ele: Element|HTMLElement|NodeList) => void;
37+
success: (ele: Element|HTMLElement) => void;
3838

3939
successClass: string;
4040

4141
validateDelay: number;
4242

4343
}
4444

45-
interface IBlazyInstance {
45+
interface BlazyInstance {
4646

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

6363
}
6464

65-
interface IBreakpoint {
65+
interface Breakpoint {
6666
width: number;
6767
src: string;
6868
}

0 commit comments

Comments
 (0)