(filePath: string, onError?: (error: string) => void)
| 21 | } |
| 22 | |
| 23 | export function readFileSync(filePath: string, onError?: (error: string) => void): Playlist { |
| 24 | const playlist = parse(readJsonFileSync(filePath), onError); |
| 25 | playlist.filePath = filePath; |
| 26 | return playlist; |
| 27 | } |
| 28 | |
| 29 | export async function readOrCreateFile(filePath: string, onError?: (error: string) => void): Promise<Playlist> { |
| 30 | let error: Error | undefined; |
no test coverage detected