1 | // @flow
|
2 |
|
3 | /*::
|
4 | export type Paragraph = {
|
5 | type: 'paragraph',
|
6 | text: Array<string>
|
7 | };
|
8 |
|
9 | */
|
10 | class ContentGenerator {
|
11 | static paragraph(text /*: string */) /*: Paragraph */ {
|
12 | return {
|
13 | type: 'paragraph',
|
14 | text: [text]
|
15 | };
|
16 | }
|
17 | }
|
18 |
|
19 | module.exports = {
|
20 | ContentGenerator
|
21 | };
|