Skip to content

Commit ef70096

Browse files
authored
docs: use correct flow examples in documentation (#851)
1 parent 26d012c commit ef70096

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

packages/plugins/flow/flow/src/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export interface FlowPluginConfig extends RawTypesConfig {
1111
* @default true
1212
*
1313
* @exampleMarkdown
14-
* ```yaml
14+
* ```yaml {6}
1515
* generates:
16-
* path/to/file.ts:
16+
* path/to/file.js:
1717
* plugins:
1818
* - flow
1919
* config:
@@ -26,9 +26,9 @@ export interface FlowPluginConfig extends RawTypesConfig {
2626
* @default false
2727
*
2828
* @exampleMarkdown
29-
* ```yaml
29+
* ```yaml {6}
3030
* generates:
31-
* path/to/file.ts:
31+
* path/to/file.js:
3232
* plugins:
3333
* - flow
3434
* config:

packages/plugins/flow/operations/src/config.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
1313
* @default true
1414
*
1515
* @exampleMarkdown
16-
* ```yaml {6}
16+
* ```yaml {7}
1717
* generates:
18-
* path/to/file.ts:
18+
* path/to/file.js:
1919
* plugins:
2020
* - flow
21+
* - flow-operations
2122
* config:
2223
* useFlowExactObjects: false
2324
* ```
@@ -28,11 +29,12 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
2829
* @default false
2930
*
3031
* @exampleMarkdown
31-
* ```yaml {6}
32+
* ```yaml {7}
3233
* generates:
33-
* path/to/file.ts:
34+
* path/to/file.js:
3435
* plugins:
3536
* - flow
37+
* - flow-operations
3638
* config:
3739
* useFlowReadOnlyTypes: true
3840
* ```
@@ -45,10 +47,10 @@ export interface FlowDocumentsPluginConfig extends RawDocumentsConfig {
4547
* @exampleMarkdown
4648
* ```yaml {7}
4749
* generates:
48-
* path/to/file.ts:
50+
* path/to/file.js:
4951
* plugins:
50-
* - typescript
51-
* - typescript-operations
52+
* - flow
53+
* - flow-operations
5254
* config:
5355
* flattenGeneratedTypes: true
5456
* ```

0 commit comments

Comments
 (0)