ContentOf

tcmts.content.ContentOf · #fpih75wu · type

What a collection's entries hold as Content, by what its files are: the pages' component for MDX pages, undefined for other files (or either, in a namespace of both).

export type ContentOf<F> = [Exclude<F, string>] extends [never]
  ? undefined
  : [Extract<F, string>] extends [never]
    ? Exclude<F, string>
    : Exclude<F, string> | undefined;

used by