(props: Data)
| 132 | } |
| 133 | |
| 134 | function formatProps(props: Data): any[] { |
| 135 | const res: any[] = [] |
| 136 | const keys = Object.keys(props) |
| 137 | keys.slice(0, 3).forEach(key => { |
| 138 | res.push(...formatProp(key, props[key])) |
| 139 | }) |
| 140 | if (keys.length > 3) { |
| 141 | res.push(` ...`) |
| 142 | } |
| 143 | return res |
| 144 | } |
| 145 | |
| 146 | function formatProp(key: string, value: unknown): any[] |
| 147 | function formatProp(key: string, value: unknown, raw: true): any |
no test coverage detected