Skip to content

remix/routes · Type

View Source

ResourceOptions

Summary

Options for generating singleton resource routes.

Signature

type ResourceOptions = {
  names?: {
    create?: string
    destroy?: string
    edit?: string
    new?: string
    show?: string
    update?: string
  }
} & ({ exclude?: never; only?: ResourceMethod[] } | { exclude?: ResourceMethod[]; only?: never })