Index of every page on this site: llms.txt
TypeScript
Schema

Person Schema

Schema.org Person

  • Type: definePerson<T extends Record<string, any>>(input?: Person & T)
    Describes an individual person. It is most commonly used to identify the author of a piece of content, such as an Article or Comment.

Required properties

  • name string
    The name of the person.
  • image NodeRelations<ImageObject | string>
    The URL of the person's avatar image.
  • url string or sameAs Arrayable<string>
    Links that describe the person, for example their website or social accounts.

Examples

Minimal

definePerson({
  name: 'Harlan Wilton',
  image: '/me.png',
})

Defaults

  • @type: Person
  • @id: ${canonicalHost}#identity
  • url: canonicalHost

Resolves

See Global Resolves for full context.

  • resolves relative string URLs in image
  • when @id is omitted, uses the primary #identity ID and links the Person as the WebSite publisher and default Article author when those nodes exist

Types

/**
 * A person (alive, dead, undead, or fictional).
 */
export interface PersonSimple extends Thing {
  /**
   * The full name of the Person.
   */
  name: string
  /**
   * The user bio.
   */
  description?: string
  /**
   * An array of URLs representing declared social/authoritative profiles of the person
   * (e.g., a Wikipedia page, or Facebook profile).
   */
  sameAs?: Arrayable<string>
  /**
   * An array of images which represent the person, referenced by ID.
   */
  image?: NodeRelations<ImageObject | string>
  /**
   * The URL of the user's profile page (if they're affiliated with the site in question),
   * or to their personal homepage/website.
   */
  url?: string
}
Did this page help you?