6 lines
270 B
TypeScript
6 lines
270 B
TypeScript
type TableInfoTextSelection = Pick<Selection, "isCollapsed" | "toString">;
|
|
|
|
export function shouldNavigateFromTableInfoColumnClick(selection?: TableInfoTextSelection | null): boolean {
|
|
return !selection || selection.isCollapsed || selection.toString().length === 0;
|
|
}
|