Skip to content

Commit

Permalink
fix: re-add default values
Browse files Browse the repository at this point in the history
regression of: "chore: modernize dependencies (#440)"
  • Loading branch information
schoero committed May 13, 2024
1 parent d1f4239 commit 18cc7c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ interface QRBillOptions {
* Font used for the QR-Bill.
* Fonts other than Helvetica must be registered in the PDFKit document. {@link http://pdfkit.org/docs/text.html#fonts}.
*
* @default 'Helvetica'

Check warning on line 107 in src/shared/types.ts

View workflow job for this annotation

GitHub Actions / lint

@default should be empty
* @example
* ```ts
* // Register the font
Expand All @@ -117,18 +118,24 @@ interface QRBillOptions {

/**
* The language with which the bill is rendered.
*
* @default `DE`

Check warning on line 122 in src/shared/types.ts

View workflow job for this annotation

GitHub Actions / lint

@default should be empty
*/
language?: "DE" | "EN" | "FR" | "IT";

/**
* Whether you want render the outlines. This option may be disabled if you use perforated paper.
*
* @default `true`

Check warning on line 129 in src/shared/types.ts

View workflow job for this annotation

GitHub Actions / lint

@default should be empty
*/
outlines?: boolean;

/**
* Whether you want to show the scissors icons or the text `Separate before paying in`.
*
* **Warning:** Setting **scissors** to false sets **separate** to true. To disable scissors and separate, you have to set both options to false.
*
* @default `true`

Check warning on line 138 in src/shared/types.ts

View workflow job for this annotation

GitHub Actions / lint

@default should be empty
*/
scissors?: boolean;
}
Expand All @@ -139,6 +146,8 @@ export interface PDFOptions extends QRBillOptions {
* Whether you want to show the text `Separate before paying in` rather than the scissors icons.
*
* **Warning:** Setting **separate** to true sets **scissors** to false. To disable scissors and separate, you have to set both options to false.
*
* @default `false`

Check warning on line 150 in src/shared/types.ts

View workflow job for this annotation

GitHub Actions / lint

@default should be empty
*/
separate?: boolean;
}
Expand Down

0 comments on commit 18cc7c2

Please sign in to comment.