diff --git a/docs/plugins/tutorial/designing-api.md b/docs/plugins/tutorial/designing-api.md index 04b0651a3..30c3fb1b7 100644 --- a/docs/plugins/tutorial/designing-api.md +++ b/docs/plugins/tutorial/designing-api.md @@ -45,6 +45,8 @@ Populate `definitions.ts` with the following code: ```typescript import type { PluginListenerHandle } from '@capacitor/core'; +export declare type OrientationLockType = 'any' | 'natural' | 'landscape' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary'; + export interface ScreenOrientationPlugin { /** * Returns the screen's current orientation. @@ -67,7 +69,7 @@ export interface ScreenOrientationPlugin { addListener( eventName: 'screenOrientationChange', listenerFunc: (orientation: { type: OrientationType }) => void, - ): Promise & PluginListenerHandle; + ): Promise; /** * Removes all listeners