@udus/notion-renderer
Version:

25 lines • 891 B
TypeScript
import type { BlockBlockProps } from "./block.js";
import type { Overwrite } from "../../utils.js";
import type { TextRequest } from "../common/common.js";
import type { RichTextItemType } from "../richText/richTextItem.js";
import type { FileBlockObjectResponse } from "@notionhq/client/build/src/api-endpoints.js";
import type { ComponentType } from "react";
export type FileBlockObject = Overwrite<FileBlockObjectResponse, {
file: {
type: "external";
external: {
url: TextRequest;
};
caption: Array<RichTextItemType>;
} | {
type: "file";
file: {
url: string;
expiry_time: string;
};
caption: Array<RichTextItemType>;
};
}>;
export type FileBlockProps = BlockBlockProps<FileBlockObject>;
export type FileBlock = ComponentType<FileBlockProps>;
//# sourceMappingURL=file.d.ts.map