From 3e7b5e9257739216bebc00933ede30b55aebfe46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Roma=C5=84czyk?= Date: Fri, 3 Jan 2025 00:45:59 +0100 Subject: [PATCH] docs: align how options look between loader api docs (#848) --- website/src/5.x/api/loaders/flow-loader.md | 25 +++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/website/src/5.x/api/loaders/flow-loader.md b/website/src/5.x/api/loaders/flow-loader.md index af483e989..2131eecf6 100644 --- a/website/src/5.x/api/loaders/flow-loader.md +++ b/website/src/5.x/api/loaders/flow-loader.md @@ -16,11 +16,26 @@ type FlowLoaderOptions = { }; ``` -| Name | Description | Default | -| ------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------- | -| all | If true, bypasses looking for an `@flow` pragma comment before parsing. | false | -| ignoreUninitializedFields | If true, removes uninitialized class fields (`foo;`, `foo: string;`) completely rather than only removing the type. | false | -| pretty | If true, removes types completely rather than replacing with spaces. This may require using source maps. | false | +### all + +- Type: `boolean` +- Default: `false` + +If true, bypasses looking for an `@flow` pragma comment before parsing. + +### ignoreUninitializedFields + +- Type: `boolean` +- Default: `false` + +If true, removes uninitialized class fields (`foo;`, `foo: string;`) completely rather than only removing the type. + +### pretty + +- Type: `boolean` +- Default: `false` + +If true, removes types completely rather than replacing with spaces. This may require using source maps. ## Example