Skip to content

Commit

Permalink
feat(rome_js_formatter): TS Intersection & Union types rome#3162
Browse files Browse the repository at this point in the history
format vscode
  • Loading branch information
Denis Bezrukov committed Sep 7, 2022
1 parent d57b748 commit c094167
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editors/vscode/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { commands, TextDocument, TextEditor } from "vscode";

const SUPPORTED_LANGUAGES = new Set(["javascript", "typescript"]);

export type RomeDocument =
& TextDocument
& { languageId: keyof typeof SUPPORTED_LANGUAGES };
export type RomeDocument = TextDocument & {
languageId: keyof typeof SUPPORTED_LANGUAGES;
};
export type RomeEditor = TextEditor & { document: RomeDocument };

/** Sets ['when'](https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts) clause contexts */
Expand Down

0 comments on commit c094167

Please sign in to comment.