mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
8 lines (7 loc) • 365 B
TypeScript
/**
* Removes prototype-shaped own keys at the parser boundary before metadata is exposed or merged.
*
* Rebuilding objects also prevents a downstream consumer from accidentally treating an authored
* `__proto__` property as merge instructions. Values otherwise remain opaque to diagram adapters.
*/
export declare function stripPrototypeKeys<T>(value: T): T;