(path: string)
| 131 | } |
| 132 | |
| 133 | export function readMotionSpec(path: string): MotionSpecParse { |
| 134 | let raw: unknown; |
| 135 | try { |
| 136 | raw = JSON.parse(readFileSync(path, "utf-8")); |
| 137 | } catch (err) { |
| 138 | return { ok: false, errors: [`could not read ${basename(path)}: ${(err as Error).message}`] }; |
| 139 | } |
| 140 | return parseMotionSpec(raw); |
| 141 | } |
no test coverage detected