MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / _richText

Function _richText

packages/contentful-generator/src/index.ts:49–66  ·  view source on GitHub ↗
({ numSentences }: { numSentences: number })

Source from the content-addressed store, hash-verified

47const localized = <T>(val: T) => ({ 'en-US': val })
48
49const _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
68const getEnvironment = async (): Promise<Contentful.Environment> => {
69 const space = await getSpace()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…