@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
9 lines (8 loc) • 398 B
TypeScript
export declare const FUNCTION_PREFIX = "_function:";
export declare const ELEMENT_PREFIX = "_element:";
/**
* We can't send messages with DOM nodes or functions because they will result in a
* data clone error. sanitizeMessage recursively clones an object and replaces the
* DOM nodes and functions with a string representation.
**/
export declare const sanitizeMessage: (message: any) => any;