diff --git a/types/hummus-recipe/index.d.ts b/types/hummus-recipe/index.d.ts index e1f1bee06f..5f71b5a19d 100644 --- a/types/hummus-recipe/index.d.ts +++ b/types/hummus-recipe/index.d.ts @@ -3,12 +3,8 @@ // Definitions by: Erik Berreßem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/** - * @name HummusRecipe - * @namespace - */ declare namespace HummusRecipe { - export interface IRecipeOptions { + interface IRecipeOptions { version?: number author?: string title?: string @@ -16,7 +12,7 @@ declare namespace HummusRecipe { keywords?: string[] } - export interface ICommentOptions { + interface ICommentOptions { title?: string date?: string open?: boolean @@ -33,7 +29,7 @@ declare namespace HummusRecipe { | 'togglenoview' } - export interface IAnotOptions { + interface IAnotOptions { title?: string open?: boolean richText?: boolean @@ -52,13 +48,13 @@ declare namespace HummusRecipe { height?: number } - export interface IEncryptOptions { + interface IEncryptOptions { password?: string ownerPassword?: string userProtectionFlag?: number } - export interface IImageOptions { + interface IImageOptions { width?: number height?: number scale?: number @@ -67,7 +63,7 @@ declare namespace HummusRecipe { align?: string } - export interface IInfoOptions { + interface IInfoOptions { version?: string author?: string title?: string @@ -75,14 +71,14 @@ declare namespace HummusRecipe { keywords?: string[] } - export interface IOverlayOptions { + interface IOverlayOptions { scale?: number keepAspectRatio?: boolean fitWidth?: boolean fitHeight?: boolean } - export interface ITextBoxStyle { + interface ITextBoxStyle { lineWidth?: number stroke?: string | number[] dash?: number[] @@ -90,7 +86,7 @@ declare namespace HummusRecipe { opacity?: number } - export interface ITextBox { + interface ITextBox { width?: number height?: number minHeight?: number @@ -100,7 +96,7 @@ declare namespace HummusRecipe { style?: ITextBoxStyle } - export interface ITextOptions { + interface ITextOptions { color?: string | number[] opacity?: number rotation?: number @@ -114,7 +110,7 @@ declare namespace HummusRecipe { textBox?: ITextBox } - export interface ILineToOptions { + interface ILineToOptions { color?: string | number[] stroke?: string | number[] fill?: string | number[] @@ -123,14 +119,14 @@ declare namespace HummusRecipe { dash?: number[] } - export interface ILineOptions { + interface ILineOptions { color?: string | number[] stroke?: string | number[] lineWidth?: number dash?: number[] } - export interface IPolygonOptions { + interface IPolygonOptions { color?: string | number[] stroke?: string | number[] fill?: string | number[] @@ -139,7 +135,7 @@ declare namespace HummusRecipe { dash?: number[] } - export interface ICircleOptions { + interface ICircleOptions { color?: string | number[] stroke?: string | number[] fill?: string | number[] @@ -148,7 +144,7 @@ declare namespace HummusRecipe { dash?: number[] } - export interface IRactangleOptions { + interface IRactangleOptions { color?: string | number[] stroke?: string | number[] fill?: string | number[] @@ -160,42 +156,9 @@ declare namespace HummusRecipe { } } -/** - * @name HummusRecipe - * @class - */ declare class HummusRecipe { - /** - * @name HummusRecipe - * @desc Create a pdfDoc - * @constructor - * @memberof HummusRecipe - * @param {string} src - The file path or Buffer of the src file. - * @param {string} output - The path of the output file. - * @param {Object} [options] - The options for pdfDoc - * @param {number} [options.version] - The pdf version - * @param {string} [options.author] - The author - * @param {string} [options.title] - The title - * @param {string} [options.subject] - The subject - * @param {string[]} [options.keywords] - The array of keywords - */ constructor(src: string, output: string, options?: HummusRecipe.IRecipeOptions) - /** - * Create a comment annotation - * @name comment - * @function - * @memberof HummusRecipe - * @param {string} text - The text content - * @param {number} x - The coordinate x - * @param {number} y - The coordinate y - * @param {Object} [options] - The options - * @param {string} [options.title] - The title. - * @param {string} [options.date] - The date. - * @param {boolean} [options.open=false] - Open the annotation by default? - * @param {boolean} [options.richText] - Display with rich text format, text will be transformed automatically, or you may pass in your own rich text starts with "