refactor(internalsSymbol): use Symbol.for

This commit is contained in:
moklick
2022-08-08 17:25:04 +02:00
parent b4dd777238
commit 72a3700a22

View File

@@ -42,7 +42,7 @@ export const getBoundsOfRects = (rect1: Rect, rect2: Rect): Rect =>
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
export const isNumeric = (n: any): n is number => !isNaN(n) && isFinite(n);
export const internalsSymbol = Symbol('internals');
export const internalsSymbol = Symbol.for('internals');
// used for a11y key board controls for nodes and edges
export const elementSelectionKeys = ['Enter', ' ', 'Escape'];