Skip to content

Commit

Permalink
Images use path, not href.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines committed Apr 24, 2018
1 parent 4589f37 commit 2fb9703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare namespace Viz {
}

export interface Image {
href: string;
path: string;
height: string | number;
width: string | number;
}
Expand Down
6 changes: 3 additions & 3 deletions test-types/viz-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const vizTests = {
"test: the render functions accept an images option": function() {
let options: Viz.Options = {
images: [
{ href: "http://example.com/image.png", width: "300px", height: "200px" },
{ href: "http://example.com/image2.png", width: 640, height: 480 },
{ path: "http://example.com/image.png", width: "300px", height: "200px" },
{ path: "http://example.com/image2.png", width: 640, height: 480 },
]
};
},
Expand All @@ -48,7 +48,7 @@ const vizTests = {
},

"test: images and files are types": function() {
let image: Viz.Image = { href: "test.png", width: 100, height: 100 };
let image: Viz.Image = { path: "test.png", width: 100, height: 100 };
let file: Viz.File = { path: "blah", data: "123" };
}
};

0 comments on commit 2fb9703

Please sign in to comment.