flipDirection
functionFlip a direction ('next' -> 'previous'; 'previous' -> 'next'). Note that TypeScript can't prove that FlipDirection is its own inverse (but if you have a concrete 'next' or 'previous' it will simplify accordingly).
Import
import { flipDirection } from '@modular/sdk/editor';Notes
- returns
- The opposite direction