diff --git a/src/plugins/vibration.ts b/src/plugins/vibration.ts index d9aec87e..910c6a8c 100644 --- a/src/plugins/vibration.ts +++ b/src/plugins/vibration.ts @@ -25,17 +25,18 @@ import {Plugin, Cordova} from './plugin'; @Plugin({ plugin: 'cordova-plugin-vibration', pluginRef: 'navigator', - repo: 'https://github.com/apache/cordova-plugin-vibration' + repo: 'https://github.com/apache/cordova-plugin-vibration', + platforms: ['Android', 'iOS', 'Windows 8.1 Phone', 'Windows 8.1', 'Windows 10'] }) export class Vibration { /** * Vibrates the device for given amount of time. - * @param time {Number|Array} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately. + * @param time {number|Array} Milliseconds to vibrate the device. If passed an array of numbers, it will define a vibration pattern. Pass 0 to stop any vibration immediately. */ @Cordova({ sync: true }) - static vibrate(time: any) {} + static vibrate(time: number|Array) {} } \ No newline at end of file