Skip to content

Commit

Permalink
refactor: filename extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jan 29, 2024
1 parent 117104a commit 05626a2
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions crates/biome_fmt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,11 @@ extern "C" {

#[wasm_bindgen(typescript_custom_section)]
const FORMAT: &'static str = r#"
export type Filename =
| "index.js"
| "index.ts"
| "index.mjs"
| "index.cjs"
| "index.mts"
| "index.cts"
| "index.mjsx"
| "index.ctsx"
| "index.mtsx"
| "index.ctsx"
| "index.d.ts"
| "index.d.ts"
| "index.d.mts"
| "index.d.cts"
| "index.d.mtsx"
| "index.d.ctsx"
| (string & {});
type Mod = "" | "m" | "c";
type Lang = "j" | "t";
type X = "" | "x";
export type Filename = `index.${Mod}${"t" | "j"}s${X}` | `index.d.${Mod}ts${X}` | (string & {});
export function format(src: string, filename?: Filename, config?: Config): string;
"#;
Expand Down

0 comments on commit 05626a2

Please sign in to comment.