refactor(internalsSymbol): use Symbol.for
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user