Skip to content

Commit

Permalink
switched type string to BlockType
Browse files Browse the repository at this point in the history
  • Loading branch information
souvikinator committed May 20, 2023
1 parent 2c9b9c0 commit c524dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/notion-to-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class NotionToMarkdown {
private notionClient: Client;
private config: ConfigurationOptions;
private targetPage: string;
private customTransformers: Record<string, CustomTransformer>;
private customTransformers: Record<BlockType, CustomTransformer>;

constructor(options: NotionToMarkdownOptions) {
this.notionClient = options.notionClient;
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ export type CalloutIcon =

export type CustomTransformer = (
block: ListBlockChildrenResponseResult
) => BlockType | Promise<string>;
) => string | Promise<string>;

0 comments on commit c524dbd

Please sign in to comment.