dprint-plugin-typescript 0.11.0

TypeScript formatter for dprint.
Documentation
1
2
3
4
5
6
7
8
use super::*;
use super::configuration::Configuration;

#[deprecated(since = "0.11.0", note = "Please use the Formatter struct instead.")]
pub fn format_text(file_path: &str, file_text: &str, config: &Configuration) -> Result<Option<String>, String> {
    let formatter = formatter::Formatter::new(config);
    formatter.format_text(file_path, file_text)
}