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

Create a more comprehensive DTS File #732

Merged
merged 1 commit into from
Aug 17, 2019
Merged
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
17 changes: 8 additions & 9 deletions packages/jimp/jimp.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
declare const Jimp: Jimp;
export = Jimp;

interface Jimp {
export interface Jimp {
// Constructors
new (path: string, cb?: ImageCallback): Jimp;
new (urlOptions: URLOptions, cb?: ImageCallback): Jimp;
Expand Down Expand Up @@ -456,24 +455,24 @@ type URLOptions = {
};
};

interface Bitmap {
export interface Bitmap {
data: Buffer;
width: number;
height: number;
}
interface RGB {
export interface RGB {
r: number;
g: number;
b: number;
}
interface RGBA {
export interface RGBA {
r: number;
g: number;
b: number;
a: number;
}

interface FontChar {
export interface FontChar {
id: number;
x: number;
y: number;
Expand All @@ -486,7 +485,7 @@ interface FontChar {
chnl: number;
}

interface FontInfo {
export interface FontInfo {
face: string;
size: number;
bold: number;
Expand All @@ -500,7 +499,7 @@ interface FontInfo {
spacing: [number, number];
}

interface FontCommon {
export interface FontCommon {
lineHeight: number;
base: number;
scaleW: number;
Expand All @@ -513,7 +512,7 @@ interface FontCommon {
blueChnl: number;
}

interface Font {
export interface Font {
chars: {
[char: string]: FontChar;
};
Expand Down