Skip to content

Commit

Permalink
Export useful TypeScript types (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
zner0L authored Mar 31, 2022
1 parent 0b5cd4f commit c212f23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Letter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { layout as dinLayoutFunction } from './layouts/din-5008-a';
import { formatAddress, mm2pt, stripTags, applyFunctionToPdfMakeContent } from './utility';
import type { LayoutFunction, PdfMakeContent, Signature } from './types';

type LetterProps = {
export type LetterProps = {
sender_address: string[] | string;
recipient_address: string[] | string;
/** The information block usually displayed at the top-right of the letter. */
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export { Template } from './Template';
export { Letter } from './Letter';
export { PdfRenderer } from './PdfRenderer';
export type { LetterProps } from './Letter';
export type { LayoutFunction, Signature } from './types';

export * as util from './utility';
export * from './utility';

0 comments on commit c212f23

Please sign in to comment.