Skip to content

Commit

Permalink
docs: align how options look between loader api docs (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroma authored Jan 2, 2025
1 parent 3bd4e35 commit 3e7b5e9
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions website/src/5.x/api/loaders/flow-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e7b5e9

Please sign in to comment.