get-notion-object-title
Version:
get human readable names from Notion objects.
20 lines (19 loc) • 416 B
TypeScript
export type Icon = {
type: 'emoji';
emoji: string;
} | {
type: 'external';
external: {
url: string;
};
} | {
type: 'file';
file: {
url: string;
expiry_time: string;
};
} | null;
export type GetNotionObjectTitleOptions = {
emoji?: boolean;
};
export declare const getNotionObjectTitle: (notionObject: unknown, options?: GetNotionObjectTitleOptions) => any;