interface ResourceForkOptions {
    register?: ResourceForkRegisterMode;
    reId?: ((id: string) => string);
}

Properties

Properties

Control whether the fork keeps the base register list.

  • "keep" (default) keeps registration items
  • "drop" clears registration items
  • "deep" deep-forks registered resources with new ids (resource tree)
reId?: ((id: string) => string)

Used with register: "deep" to derive ids for deep-forked resources. Defaults to (id) => \${newId}.${id}``.