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 website
  • Loading branch information
Denis Bezrukov committed Sep 7, 2022
1 parent fe72d25 commit d57b748
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/playground/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ export interface PlaygroundState {
}

// change `lineWidth` and `indentWidth` to string type, just to fits our `usePlaygroundState` fallback usage
export type RomeConfiguration =
& Omit<PlaygroundState, "code" | "lineWidth" | "indentWidth">
& { lineWidth: string; indentWidth: string };
export type RomeConfiguration = Omit<
PlaygroundState,
"code" | "lineWidth" | "indentWidth"
> & { lineWidth: string; indentWidth: string };

export const defaultRomeConfig: RomeConfiguration = {
lineWidth: "80",
Expand Down

0 comments on commit d57b748

Please sign in to comment.