From d9c675796036ed94243bcdb52efa2a6468dbba7d Mon Sep 17 00:00:00 2001 From: davidaq <153019747@qq.com> Date: Tue, 13 Aug 2019 20:42:35 +0800 Subject: [PATCH] Correct preprocessor api doc Correct preprocessor type definition inside api doc --- site/content/docs/04-compile-time.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/content/docs/04-compile-time.md b/site/content/docs/04-compile-time.md index c219bae497..f47fe564af 100644 --- a/site/content/docs/04-compile-time.md +++ b/site/content/docs/04-compile-time.md @@ -186,15 +186,15 @@ result: { } = svelte.preprocess( source: string, preprocessors: Array<{ - markup?: (input: { source: string, filename: string }) => Promise<{ + markup?: (input: { content: string, filename: string }) => Promise<{ code: string, dependencies?: Array }>, - script?: (input: { source: string, attributes: Record, filename: string }) => Promise<{ + script?: (input: { content: string, attributes: Record, filename: string }) => Promise<{ code: string, dependencies?: Array }>, - style?: (input: { source: string, attributes: Record, filename: string }) => Promise<{ + style?: (input: { content: string, attributes: Record, filename: string }) => Promise<{ code: string, dependencies?: Array }>