From 3e00641e88bd24c5ede1192b2e79256fe7070481 Mon Sep 17 00:00:00 2001 From: Nutthapat Pongtanyavichai <59821765+Leomotors@users.noreply.github.com> Date: Sat, 22 Oct 2022 23:30:50 +0700 Subject: [PATCH] feat: update ImportOrderParserPlugin type name --- types/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 7b8bf51..4c5f02f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,7 +1,9 @@ -import { ParserPlugin as BaseParserPlugin } from '@babel/parser'; +import { ParserPlugin } from '@babel/parser'; import { Config } from 'prettier'; -type ParserPlugin = Extract | `[${string},${string}]`; +export type ImportOrderParserPlugin = + | Extract + | `[${string},${string}]`; export interface PluginConfig { /** @@ -89,7 +91,7 @@ used to order imports within each match group. * * @default ["typescript", "jsx"] */ - importOrderParserPlugins?: ParserPlugin[]; + importOrderParserPlugins?: ImportOrderParserPlugin[]; } export type PrettierConfig = PluginConfig & Config;