(info: WriterLockInfo)
| 51 | | { kind: 'taken'; existing: WriterLockInfo | null; pidPath: string }; |
| 52 | |
| 53 | function encode(info: WriterLockInfo): string { |
| 54 | return JSON.stringify(info) + '\n'; |
| 55 | } |
| 56 | |
| 57 | export function decodeWriterLockInfo(raw: string): WriterLockInfo | null { |
| 58 | try { |
no outgoing calls
no test coverage detected