Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export interfaces #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* coordinate bounds
*/
interface CoordBounds {
export interface CoordBounds {
/**
* X-coordinate of upper left corner
*/
Expand All @@ -29,7 +29,7 @@ interface CoordBounds {
/**
* bounded image
*/
interface BoundedImage {
export interface BoundedImage {
/**
* image path or buffer
*/
Expand All @@ -43,7 +43,7 @@ interface BoundedImage {
/**
* The result obtained from the function.
*/
interface LooksSameResult {
export interface LooksSameResult {
/**
* true if images are equal, false - otherwise
*/
Expand All @@ -58,12 +58,12 @@ interface LooksSameResult {
diffClusters?: CoordBounds[];
}

type LooksSameCallback = (error: Error | null, result: LooksSameResult) => void;
export type LooksSameCallback = (error: Error | null, result: LooksSameResult) => void;

/**
* The options passed to looksSame function
*/
interface LooksSameOptions {
export interface LooksSameOptions {
/**
* By default, it will detect only noticeable differences. If you wish to detect any difference, use strict options.
*/
Expand Down Expand Up @@ -117,7 +117,7 @@ interface LooksSameOptions {
/**
* The options passed to looksSame.createDiff function without diff
*/
interface CreateDiffAsBufferOptions {
export interface CreateDiffAsBufferOptions {
/**
* The baseline image
*/
Expand Down Expand Up @@ -156,7 +156,7 @@ interface CreateDiffAsBufferOptions {
/**
* The options passed to looksSame.createDiff function
*/
interface CreateDiffOptions extends CreateDiffAsBufferOptions {
export interface CreateDiffOptions extends CreateDiffAsBufferOptions {
/**
* The diff image path to store
*/
Expand All @@ -166,7 +166,7 @@ interface CreateDiffOptions extends CreateDiffAsBufferOptions {
/**
* Pass to looksSame.colors function
*/
interface Color {
export interface Color {
/**
* Red
*/
Expand Down