The example code for the flip method is incorrect. The signature says it requires the axis parameter but the example code shows calling an axis method on the flip method.
Current (Incorrect) Example
// flip horizontally
await layer.flip.horizontal()
Corrected Example
// flip horizontally
await layer.flip("horizontal")