Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 1459497

Browse files
committed
Remove types.
1 parent b335d1d commit 1459497

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var Notifications = {
2929
}
3030
};
3131

32-
Notifications.callNative = function(name: String, params: Array) {
32+
Notifications.callNative = function(name, params) {
3333
if ( typeof this.handler[name] === 'function' ) {
3434
if ( typeof params !== 'array' &&
3535
typeof params !== 'object' ) {
@@ -51,7 +51,7 @@ Notifications.callNative = function(name: String, params: Array) {
5151
* @param {Object} options.permissions - Permissions list
5252
* @param {Boolean} options.requestPermissions - Check permissions when register
5353
*/
54-
Notifications.configure = function(options: Object) {
54+
Notifications.configure = function(options) {
5555
if ( typeof options.onRegister !== 'undefined' ) {
5656
this.onRegister = options.onRegister;
5757
}
@@ -117,7 +117,7 @@ Notifications.unregister = function() {
117117
* @param {String} details.ticker - ANDROID ONLY: The ticker displayed in the status bar.
118118
* @param {Object} details.userInfo - iOS ONLY: The userInfo used in the notification alert.
119119
*/
120-
Notifications.localNotification = function(details: Object) {
120+
Notifications.localNotification = function(details) {
121121
if ( Platform.OS === 'ios' ) {
122122
// https://developer.apple.com/reference/uikit/uilocalnotification
123123

@@ -149,7 +149,7 @@ Notifications.localNotification = function(details: Object) {
149149
* @param {Object} details (same as localNotification)
150150
* @param {Date} details.date - The date and time when the system should deliver the notification
151151
*/
152-
Notifications.localNotificationSchedule = function(details: Object) {
152+
Notifications.localNotificationSchedule = function(details) {
153153
if ( Platform.OS === 'ios' ) {
154154
let soundName = details.soundName ? details.soundName : 'default'; // play sound (and vibrate) as default behaviour
155155

@@ -189,7 +189,7 @@ Notifications.localNotificationSchedule = function(details: Object) {
189189
};
190190

191191
/* Internal Functions */
192-
Notifications._onRegister = function(token: String) {
192+
Notifications._onRegister = function(token) {
193193
if ( this.onRegister !== false ) {
194194
this.onRegister({
195195
token: token,
@@ -198,7 +198,7 @@ Notifications._onRegister = function(token: String) {
198198
}
199199
};
200200

201-
Notifications._onRemoteFetch = function(notificationData: Object) {
201+
Notifications._onRemoteFetch = function(notificationData) {
202202
if ( this.onRemoteFetch !== false ) {
203203
this.onRemoteFetch(notificationData)
204204
}

0 commit comments

Comments
 (0)