({ numSentences }: { numSentences: number })
| 47 | const localized = <T>(val: T) => ({ 'en-US': val }) |
| 48 | |
| 49 | const _richText = ({ numSentences }: { numSentences: number }) => ({ |
| 50 | content: [ |
| 51 | { |
| 52 | nodeType: 'paragraph', |
| 53 | data: {}, |
| 54 | content: [ |
| 55 | { |
| 56 | value: lorem.generateSentences(numSentences), |
| 57 | nodeType: 'text', |
| 58 | marks: [], |
| 59 | data: {}, |
| 60 | }, |
| 61 | ], |
| 62 | }, |
| 63 | ], |
| 64 | data: {}, |
| 65 | nodeType: 'document', |
| 66 | }) |
| 67 | |
| 68 | const getEnvironment = async (): Promise<Contentful.Environment> => { |
| 69 | const space = await getSpace() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…