1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{io, path::Path};

#[derive(Debug)]
pub enum Error {
    Io(io::Error),
    UnexpectedJson((Box<Path>, serde_json::Error)),
    UnexpectedValue(String),
    ResolveFailedTag,
    Overflow,
    CantFindTsConfig(Box<Path>),
}

impl From<std::io::Error> for Error {
    fn from(value: std::io::Error) -> Self {
        Self::Io(value)
    }
}