From 91870129e197603032f53998a464dda0840655b8 Mon Sep 17 00:00:00 2001 From: pngwn Date: Tue, 4 Jun 2024 13:02:36 +0100 Subject: [PATCH] format --- packages/mdsvex/src/types.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/mdsvex/src/types.ts b/packages/mdsvex/src/types.ts index 096bec07..5d3f259e 100644 --- a/packages/mdsvex/src/types.ts +++ b/packages/mdsvex/src/types.ts @@ -183,7 +183,10 @@ interface HighlightOptions { alias?: Record; } -export type PluginWithSettings = Plugin> = [P, ...S] +export type PluginWithSettings< + S extends any[] = [Settings?], + P extends Plugin = Plugin +> = [P, ...S]; export type UnifiedPlugins = Array; export interface TransformOptions { @@ -305,10 +308,10 @@ export interface MdsvexCompileOptions extends MdsvexOptions { export type PreprocessorReturn = Promise< | { - code: string; - data?: Record; - map?: string; - } + code: string; + data?: Record; + map?: string; + } | undefined >;