Skip to content

Commit

Permalink
Merge pull request #518 from Brooooooklyn/remove-const-enum
Browse files Browse the repository at this point in the history
chore: remove const enum from .d.ts
  • Loading branch information
Brooooooklyn authored Aug 5, 2022
2 parents 2bf8768 + 5c12f9d commit 82ee1c5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,34 +356,34 @@ interface IGlobalFonts {

export const GlobalFonts: IGlobalFonts

export const enum PathOp {
export enum PathOp {
Difference = 0, // subtract the op path from the first path
Intersect = 1, // intersect the two paths
Union = 2, // union (inclusive-or) the two paths
XOR = 3, // exclusive-or the two paths
ReverseDifference = 4, // subtract the first path from the op path
}

export const enum FillType {
export enum FillType {
Winding = 0,
EvenOdd = 1,
InverseWinding = 2,
InverseEvenOdd = 3,
}

export const enum StrokeJoin {
export enum StrokeJoin {
Miter = 0,
Round = 1,
Bevel = 2,
}

export const enum StrokeCap {
export enum StrokeCap {
Butt = 0,
Round = 1,
Square = 2,
}

export const enum SvgExportFlag {
export enum SvgExportFlag {
ConvertTextToPaths = 0x01,
NoPrettyXML = 0x02,
RelativePathEncoding = 0x04,
Expand All @@ -392,9 +392,9 @@ export const enum SvgExportFlag {
export function convertSVGTextToPath(svg: Buffer | string): Buffer

export interface LoadImageOptions {
alt?: string,
maxRedirects?: number,
requestOptions?: import('http').RequestOptions,
alt?: string
maxRedirects?: number
requestOptions?: import('http').RequestOptions
}

export function loadImage(
Expand Down

0 comments on commit 82ee1c5

Please sign in to comment.