mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
@@ -1,7 +1,7 @@
|
||||
/// <reference path="blazy.d.ts" />
|
||||
|
||||
/* Constructor test */
|
||||
var tester: IBlazyInstance = new Blazy({
|
||||
var tester: BlazyInstance = new Blazy({
|
||||
breakpoints: [
|
||||
{
|
||||
width: 420,
|
||||
|
||||
Vendored
+6
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user