(renderer: Root)
| 112 | export type DebugFunction = (options?: DebugOptions) => void; |
| 113 | |
| 114 | function makeDebug(renderer: Root): DebugFunction { |
| 115 | function debugImpl(options?: DebugOptions) { |
| 116 | const { defaultDebugOptions } = getConfig(); |
| 117 | const debugOptions = { ...defaultDebugOptions, ...options }; |
| 118 | const json = renderer.container.toJSON(); |
| 119 | if (json) { |
| 120 | return debug(json, debugOptions); |
| 121 | } |
| 122 | } |
| 123 | return debugImpl; |
| 124 | } |
| 125 | |
| 126 | type StyleLike = Record<string, unknown>; |
| 127 |
no outgoing calls
no test coverage detected
searching dependent graphs…