Merge pull request #3402 from davidaq/patch-1

Correct preprocessor api doc
pull/3405/head
Rich Harris 6 years ago committed by GitHub
commit 207d8aeeed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -186,15 +186,15 @@ result: {
} = svelte.preprocess( } = svelte.preprocess(
source: string, source: string,
preprocessors: Array<{ preprocessors: Array<{
markup?: (input: { source: string, filename: string }) => Promise<{ markup?: (input: { content: string, filename: string }) => Promise<{
code: string, code: string,
dependencies?: Array<string> dependencies?: Array<string>
}>, }>,
script?: (input: { source: string, attributes: Record<string, string>, filename: string }) => Promise<{ script?: (input: { content: string, attributes: Record<string, string>, filename: string }) => Promise<{
code: string, code: string,
dependencies?: Array<string> dependencies?: Array<string>
}>, }>,
style?: (input: { source: string, attributes: Record<string, string>, filename: string }) => Promise<{ style?: (input: { content: string, attributes: Record<string, string>, filename: string }) => Promise<{
code: string, code: string,
dependencies?: Array<string> dependencies?: Array<string>
}> }>

Loading…
Cancel
Save