pub fn typescript(module: &Module) -> Result<String, Error>