(node: SceneNode, key: 'fillStyleId' | 'strokeStyleId')
| 69 | if (value == null) return { kind: 'missing' } |
| 70 | if (!Array.isArray(value)) return { kind: 'unsupported', value } |
| 71 | return { kind: 'array', paints: value } |
| 72 | } |
| 73 | |
| 74 | function readStyleId(node: SceneNode, key: 'fillStyleId' | 'strokeStyleId'): string | null { |
| 75 | if (!(key in node)) return null |
| 76 | const value = (node as { fillStyleId?: unknown; strokeStyleId?: unknown })[key] |
| 77 | return typeof value === 'string' && value.length > 0 ? value : null |
| 78 | } |
no outgoing calls
no test coverage detected