MCPcopy Create free account

hub / github.com/contentlayerdev/contentlayer / functions

Functions636 in github.com/contentlayerdev/contentlayer

FunctiongenerateMetadata
({ params }: { params: { tag: string; slug: string[] } })
examples/next-rsc-dynamic/app/v/[tag]/[...slug]/page.tsx:3
FunctiongenerateMetadata
({ params })
examples/next-images/app/posts/[slug]/page.tsx:8
FunctiongenerateStaticParams
()
examples/next-rsc-dynamic/app/[...slug]/page.tsx:3
FunctiongenerateStaticParams
()
examples/next-images/app/posts/[slug]/page.tsx:6
FunctiongetStaticPaths
()
examples/archive/playground-azimuth-contentful/src/pages/[[...slug]].tsx:14
FunctiongetStaticPaths
()
examples/archive/starter-js/pages/posts/[id].jsx:8
FunctiongetStaticPaths
()
examples/archive/playground-azimuth-colocated/src/pages/[[...slug]].tsx:14
FunctiongetStaticPaths
()
examples/archive/starter/pages/posts/[id].tsx:9
FunctiongetStaticPaths
()
examples/archive/playground-contentful-starter/pages/posts/[id].tsx:10
FunctiongetStaticPaths
()
examples/archive/playground-azimuth/src/pages/[[...slug]].tsx:13
FunctiongetStaticProps
({})
examples/archive/starter-js/pages/index.jsx:10
FunctiongetStaticProps
({ params })
examples/archive/starter-js/pages/posts/[id].jsx:16
FunctiongetStaticProps
({})
examples/archive/starter/pages/index.tsx:12
FunctiongetStaticProps
({ params })
examples/archive/starter/pages/posts/[id].tsx:17
FunctiongetStaticProps
({})
examples/archive/playground-contentful-starter/pages/index.tsx:12
FunctiongetStaticProps
({ params })
examples/archive/playground-contentful-starter/pages/posts/[id].tsx:18
FunctiongetUnsafe
(option: Option.Option<A>)
packages/@contentlayer/utils/src/effect/Option.ts:5
FunctionhandleFetchDataErrors
({ errors, documentCount, options, flags, schemaDef, contentDirPath, verbose, }: { errors: rea
packages/@contentlayer/source-files/src/errors/aggregate.ts:10
FunctionhasField
(_: T, property: P)
packages/@contentlayer/client/src/guards.ts:68
FunctionheadUnsafe
(array: Array.Array<A>)
packages/@contentlayer/utils/src/effect/Array.ts:7
Functionis
(typeName: N, _?: any)
packages/@contentlayer/client/src/guards.ts:31
FunctionisArrayField
(_: Field)
packages/archive/source-sanity/src/sanity-types.ts:131
FunctionisContentMarkdownFieldDef
(fieldDef: core.FieldDef)
packages/contentlayer-stackbit-yaml-generator/src/cli/convert.ts:212
FunctionisDefItemNested
(_: Item)
packages/@contentlayer/source-files/src/schema/defs/field.ts:100
FunctionisDefItemNested
(_: Item)
packages/@contentlayer/core/src/schema/field.ts:92
FunctionisDefItemReference
(_: Item)
packages/@contentlayer/core/src/schema/field.ts:107
FunctionisDocumentLikeModel
( model: Stackbit.Model, )
packages/@contentlayer/experimental-source-files-stackbit/src/index.ts:164
FunctionisImageModel
(model: Stackbit.Model | Stackbit.ImageModel)
packages/@contentlayer/experimental-source-files-stackbit/src/index.ts:169
FunctionisListFieldDef
(_: FieldDef)
packages/@contentlayer/source-files/src/schema/defs/field.ts:62
FunctionisListFieldDef
(_: FieldDef)
packages/@contentlayer/core/src/schema/field.ts:45
FunctionisListPolymorphicFieldDef
(_: FieldDef)
packages/@contentlayer/source-files/src/schema/defs/field.ts:63
FunctionisNestedFieldDef
(_: FieldDef)
packages/@contentlayer/source-files/src/schema/defs/field.ts:155
FunctionisNestedFieldDef
(_: FieldDef)
packages/@contentlayer/core/src/schema/field.ts:163
FunctionisNestedPolymorphicFieldDef
(_: FieldDef)
packages/@contentlayer/source-files/src/schema/defs/field.ts:169
FunctionisNestedPolymorphicFieldDef
(_: FieldDef)
packages/@contentlayer/core/src/schema/field.ts:174
FunctionisNestedTypeDef
(_: NestedTypeDef | NestedUnnamedTypeDef)
packages/@contentlayer/source-files/src/schema/defs/index.ts:62
FunctionisNestedUnnamedFieldDef
(_: FieldDef)
packages/@contentlayer/core/src/schema/field.ts:183
FunctionisNestedUnnamedTypeDef
(_: NestedTypeDef | NestedUnnamedTypeDef)
packages/@contentlayer/source-files/src/schema/defs/index.ts:71
FunctionisNonFailure
(self: These<E, A>)
packages/@contentlayer/utils/src/effect/These.ts:33
FunctionisNotUndefined
(_: T | undefined)
packages/@contentlayer/utils/src/guards.ts:1
FunctionisReferenceField
(_: FieldDef)
packages/@contentlayer/core/src/schema/field.ts:207
FunctionisReferencePolymorphicFieldDef
(_: FieldDef)
packages/@contentlayer/source-files/src/schema/defs/field.ts:199
FunctionisSourceFetchDataError
(_: any)
packages/@contentlayer/core/src/errors.ts:37
FunctionisUndefined
(_: T | undefined)
packages/@contentlayer/utils/src/guards.ts:2
FunctionloadPreviousCacheFromDisk
({ schemaHash, }: { schemaHash: string })
packages/@contentlayer/core/src/DataCache.ts:36
FunctionloadStackbitConfigAsDocumentTypes
( options: { dirPath: string } = { dirPath: '' }, overrideArgs: ContentlayerOverrideArgs<TDocumentTypeName
packages/@contentlayer/experimental-source-files-stackbit/src/index.ts:45
FunctionlogGenerateInfo
(info: GenerateInfo)
packages/@contentlayer/core/src/generation/generate-dotpkg.ts:52
FunctionlowercaseFirstChar
(str: string)
packages/@contentlayer/utils/src/string.ts:1
FunctionmakeAndSubscribe
( paths: readonly string[] | string, options?: Chokidar.WatchOptions, )
packages/@contentlayer/utils/src/node/fs-watcher.ts:248
FunctionmakeAndSubscribe
( buildOptions: esbuild.BuildOptions, )
packages/@contentlayer/core/src/getConfig/esbuild.ts:171
FunctionmakeAzimuthSchema
()
packages/contentlayer-stackbit-yaml-generator/src/__test__/fixtures/index.ts:9
FunctionmakeBlogSchema
()
packages/contentlayer-stackbit-yaml-generator/src/__test__/fixtures/index.ts:10
FunctionmakeSpanTuple
(spanName: string)
packages/@contentlayer/utils/src/tracing.ts:66
FunctionmakeUnsafe
(paths: readonly string[] | string, options?: Chokidar.WatchOptions)
packages/@contentlayer/utils/src/node/fs-watcher.ts:195
FunctionmapEffectEitherRight
(mapRight: (a1: A1) => T.Effect<R2, never, E.Either<E2, A2>>)
packages/@contentlayer/utils/src/effect/Stream.ts:95
FunctionmapEitherLeft
(mapLeft: (e1: EE1) => EE2)
packages/@contentlayer/utils/src/effect/Stream.ts:107
FunctionmapEitherRight
(mapRight: (a1: A1) => A2)
packages/@contentlayer/utils/src/effect/Stream.ts:113
FunctionmapError
(f: (a: E0) => E)
packages/@contentlayer/utils/src/effect/These.ts:81
FunctionmapStackbitEnumOption
(option: Stackbit.FieldEnumOptionValue | Stackbit.FieldEnumOptionObject)
packages/@contentlayer/experimental-source-files-stackbit/src/mapping.ts:190
FunctionmarkdownToHtml
({ mdString, options, rawDocumentData, }: { mdString: string options?: MarkdownOptions | MarkdownUni
packages/@contentlayer/core/src/markdown/markdown.ts:14
Functionmigrate
(migration)
packages/contentful-generator/src/migration.ts:3
Functionmkdirp
(dirPath: T)
packages/@contentlayer/utils/src/fs-in-memory.ts:126
Functionmkdirp
(dirPath: T)
packages/@contentlayer/utils/src/node/fs.ts:128
FunctionnotUndefined
(_: T | undefined)
examples/archive/playground-azimuth-contentful/src/utils/next.ts:21
FunctionnotUndefined
(_: T | undefined)
examples/archive/playground-azimuth-colocated/src/utils/next.ts:21
FunctionnotUndefined
(_: T | undefined)
examples/archive/playground-azimuth/src/utils/next.ts:21
Functionomit
(obj: Obj, keys: Keys[])
packages/@contentlayer/utils/src/object/omit.ts:7
FunctionpartitionThese
( chunk: Chunk.Chunk<These.These<E, A>>, )
packages/@contentlayer/utils/src/effect/Chunk.ts:11
Functionpick
( obj: Obj, keys: Keys[], /** Whether to filter out explicit `undefined` values */ filterUndefined = t
packages/@contentlayer/utils/src/object/pick.ts:6
FunctionpromiseMap
(arr: T[], map: (el: T, index?: number) => Res | Promise<Res>)
packages/@contentlayer/utils/src/promise.ts:2
FunctionpromiseMapDict
( dict: Record<string, T>, map: (el: T, index?: number) => Res | Promise<Res>, )
packages/@contentlayer/utils/src/promise.ts:5
FunctionpromiseMapPool
( arr: T[], map: (el: T, index?: number) => Promise<Res>, poolLimit: number, )
packages/@contentlayer/utils/src/promise.ts:23
FunctionpromiseMapToDict
( arr: T[], mapValue: (el: T, index?: number) => Res | Promise<Res>, mapKey: (el: T, index?: number) =>
packages/@contentlayer/utils/src/promise.ts:13
FunctionrawContentHasBody
(_: RawContent)
packages/@contentlayer/source-files/src/fetchData/mapping/index.ts:94
FunctionreadFileBuffer
(filePath: string)
packages/@contentlayer/utils/src/fs-in-memory.ts:67
FunctionreadFileBuffer
(filePath: string)
packages/@contentlayer/utils/src/node/fs.ts:69
FunctionreadFileJson
( filePath: string, )
packages/@contentlayer/utils/src/fs_.ts:41
FunctionreadFileJsonIfExists
( filePath: string, )
packages/@contentlayer/utils/src/fs-in-memory.ts:94
FunctionreadFileJsonIfExists
( filePath: string, )
packages/@contentlayer/utils/src/fs_.ts:46
FunctionreadFileJsonIfExists
( filePath: string, )
packages/@contentlayer/utils/src/node/fs.ts:96
Functionremove
(paths: readonly string[])
packages/@contentlayer/utils/src/node/fs-watcher.ts:278
FunctionrenderFieldDef
(field: FieldDef)
packages/@contentlayer/core/src/generation/generate-types.ts:182
FunctionrightOrFail
( effect: T.Effect<R, E1, E.Either<EE1, A>>, __trace?: string, )
packages/@contentlayer/utils/src/effect/Effect.ts:22
Functionrm
( path: string, params: { force?: boolean; recursive?: boolean } = {}, )
packages/@contentlayer/utils/src/fs-in-memory.ts:140
Functionrm
( path: string, params: { force?: boolean; recursive?: boolean } = {}, )
packages/@contentlayer/utils/src/fs_.ts:60
Functionrm
( path: string, params: { force?: boolean; recursive?: boolean } = {}, )
packages/@contentlayer/utils/src/node/fs.ts:142
Functionrun
()
packages/@contentlayer/cli/src/index.ts:15
FunctionsanitizeDef
(def: TypeDef)
packages/archive/source-sanity/src/provideSchema.ts:283
Functionsetup
(build)
packages/@contentlayer/core/src/getConfig/index.ts:215
Methodsetup
(build)
packages/@contentlayer/core/src/getConfig/esbuild.ts:60
Functionshutdown
(self: FileWatcher)
packages/@contentlayer/utils/src/node/fs-watcher.ts:282
Functionshutdown
(self: EsbuildWatcher)
packages/@contentlayer/core/src/getConfig/esbuild.ts:176
Functionstart
()
packages/@contentlayer/utils/src/tracing.ts:69
FunctionstartWithRight
(value: A2)
packages/@contentlayer/utils/src/effect/Stream.ts:66
FunctionstreamTapSkipFirst
(f: (o: O) => T.Effect<R1, E1, X>)
packages/@contentlayer/utils/src/effect/Stream.ts:11
Functionsubscribe
( self: FileWatcher, )
packages/@contentlayer/utils/src/node/fs-watcher.ts:254
Functionsymlink
({ targetPath, symlinkPath, type, }: { targetPath: string symlinkPath: string type: SymlinkType })
packages/@contentlayer/utils/src/fs-in-memory.ts:162
Functionsymlink
({ targetPath, symlinkPath, type, }: { targetPath: string symlinkPath: string type: SymlinkType })
packages/@contentlayer/utils/src/node/fs.ts:164
FunctionsymlinkExists
(pathLike: string)
packages/@contentlayer/utils/src/fs-in-memory.ts:32
FunctionsymlinkExists
(pathLike: string)
packages/@contentlayer/utils/src/node/fs.ts:34
← previousnext →501–600 of 636, ranked by callers