fix: resolve typescript errors in post menu components

This commit is contained in:
plebeius
2025-12-26 17:33:00 +01:00
parent 756bff4b04
commit 0b573acf1d
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -17,10 +17,11 @@ export const isValidURL = (url: string) => {
}
};
export type ShareLinkType = 'thread';
export type ShareLinkType = 'thread' | 'catalog';
// Copies a share link to clipboard for a board, thread, description, or rules page
export function copyShareLinkToClipboard(boardIdentifier: string, linkType: 'thread', cid: string): Promise<void>;
export function copyShareLinkToClipboard(boardIdentifier: string, linkType: Exclude<ShareLinkType, 'thread'>): Promise<void>;
export async function copyShareLinkToClipboard(boardIdentifier: string, linkType: ShareLinkType, cid?: string): Promise<void> {
if (linkType === 'thread') {
if (!cid) {