mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 05:12:38 +02:00
9 lines
196 B
TypeScript
9 lines
196 B
TypeScript
|
|
type MentionKeyInput = {
|
||
|
|
id: number;
|
||
|
|
document_type?: string | null;
|
||
|
|
};
|
||
|
|
|
||
|
|
export function getMentionDocKey(doc: MentionKeyInput): string {
|
||
|
|
return `${doc.document_type ?? "UNKNOWN"}:${doc.id}`;
|
||
|
|
}
|