Swap type
Changes the DOM.
import type { Swap } from '@dioramajs/diorama/transitions'May return a thenable that settles once the router is done.
type Swap = () => unknownAlso exported from @dioramajs/transitions.
Defined in packages/transitions/src/types.ts.