@cometchat/chat-uikit-react-native 4.3.12 → 4.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AI/AIConversationStarter/style.d.ts +8 -8
- package/lib/AI/style.d.ts +15 -15
- package/lib/CometChatAddMembers/CometChatAddMembers.js +1 -0
- package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
- package/lib/CometChatDetails/CometChatDetails.js +4 -2
- package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js +15 -4
- package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js +11 -3
- package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js +1 -1
- package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js +3 -1
- package/lib/CometChatMessageInformation/CometChatMessageInformation.js.map +1 -1
- package/lib/CometChatMessageList/CometChatMessageList.js +3 -1
- package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
- package/lib/CometChatMessageList/MessageListConfiguration.js +1 -0
- package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
- package/lib/calls/CallingPackage.d.ts +1 -1
- package/lib/extensions/CollaborativeBubble/CometChatCollaborativeBubble.d.ts +2 -2
- package/lib/extensions/ExtensionModerator.d.ts +1 -1
- package/lib/extensions/SmartReplies/SmartRepliesView.d.ts +2 -2
- package/lib/extensions/Stickers/CometChatStickerKeyboard/StickerKeyboardConfiguration.d.ts +2 -2
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +5 -5
- package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
- package/lib/extensions/ThumbnailGeneration/resources/index.d.ts +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js +2 -2
- package/lib/extensions/ThumbnailGeneration/resources/index.js.map +1 -1
- package/lib/shared/constants/UIKitConstants.d.ts +9 -0
- package/lib/shared/constants/UIKitConstants.js +12 -1
- package/lib/shared/constants/UIKitConstants.js.map +1 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +40 -1
- package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
- package/lib/shared/helper/SwipeRow.d.ts +5 -5
- package/lib/shared/helper/functions.d.ts +1 -1
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableView.d.ts +8 -5
- package/lib/shared/libs/ImageZoom/ReactNativeZoomableViewWithGestures.d.ts +2 -2
- package/lib/shared/libs/VideoPlayerControls/OSSupport/TVOSSupport.d.ts +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.d.ts +1 -1
- package/lib/shared/libs/datePickerModal/DateTimePickerModal.ios.d.ts +2 -2
- package/lib/shared/libs/datePickerModal/Modal.d.ts +3 -3
- package/lib/shared/libs/luxon/src/datetime.d.ts +81 -81
- package/lib/shared/libs/luxon/src/duration.d.ts +24 -24
- package/lib/shared/libs/luxon/src/impl/english.d.ts +3 -3
- package/lib/shared/libs/luxon/src/impl/locale.d.ts +1 -1
- package/lib/shared/libs/luxon/src/impl/util.d.ts +7 -7
- package/lib/shared/libs/luxon/src/info.d.ts +28 -28
- package/lib/shared/libs/luxon/src/interval.d.ts +14 -14
- package/lib/shared/libs/luxon/src/settings.d.ts +2 -2
- package/lib/shared/libs/luxon/src/zones/IANAZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/invalidZone.d.ts +1 -1
- package/lib/shared/libs/luxon/src/zones/systemZone.d.ts +1 -1
- package/lib/shared/modals/InteractiveData/InteractiveMessage/SchedulerMessage.d.ts +8 -8
- package/lib/shared/resources/CometChatSoundManager/CometChatSoundManager.d.ts +2 -2
- package/lib/shared/resources/CometChatTheme/CometChatTheme.d.ts +2 -2
- package/lib/shared/resources/CometChatTheme/Palette.d.ts +24 -24
- package/lib/shared/resources/CometChatTheme/Typography.d.ts +23 -23
- package/lib/shared/utils/CometChatMessagePreview/CometChatMessagePreview.d.ts +1 -1
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewConfiguration.d.ts +3 -3
- package/lib/shared/utils/CometChatMessagePreview/MessagePreviewStyle.d.ts +10 -10
- package/lib/shared/utils/DetailsUtils/DetailsUtils.d.ts +1 -1
- package/lib/shared/utils/SchedulerUtils.d.ts +4 -4
- package/lib/shared/views/CometChatActionSheet/ActionItem.d.ts +9 -9
- package/lib/shared/views/CometChatActionSheet/CometChatActionSheet.d.ts +3 -3
- package/lib/shared/views/CometChatDate/CometChatDate.d.ts +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/Emoji.d.ts +1 -1
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardConfiguration.d.ts +3 -3
- package/lib/shared/views/CometChatEmojiKeyboard/EmojiKeyboardStyle.d.ts +3 -3
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js +8 -2
- package/lib/shared/views/CometChatImageBubble/CometChatImageBubble.js.map +1 -1
- package/lib/shared/views/CometChatList/CometChatList.js +0 -1
- package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
- package/lib/shared/views/CometChatMessageBubble/style.js +1 -0
- package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +1 -1
- package/lib/shared/views/CometChatReceipt/CometChatReceipt.d.ts +1 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +7 -1
- package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js +1 -1
- package/lib/shared/views/CometChatVideoBubble/VideoBubbleStyle.js.map +1 -1
- package/package.json +1 -1
- package/src/AI/AIConversationSummary/resources/close.png +0 -0
- package/src/CometChatConversations/CometChatConversations.tsx +85 -72
- package/src/CometChatConversations/resources/close.png +0 -0
- package/src/CometChatConversations/resources/rightTick.png +0 -0
- package/src/CometChatCreateGroup/resources/close.png +0 -0
- package/src/CometChatCreateGroup/resources/rightTick.png +0 -0
- package/src/CometChatDetails/CometChatDetails.tsx +4 -2
- package/src/CometChatDetails/resources/close.png +0 -0
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +26 -11
- package/src/CometChatGroupMembers/resources/rightTick.png +0 -0
- package/src/CometChatGroups/resources/close.png +0 -0
- package/src/CometChatGroups/resources/rightTick.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/close.png +0 -0
- package/src/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +43 -48
- package/src/CometChatMessageComposer/resources/Info.png +0 -0
- package/src/CometChatMessageComposer/resources/circle_add.png +0 -0
- package/src/CometChatMessageComposer/resources/close.png +0 -0
- package/src/CometChatMessageComposer/resources/image.png +0 -0
- package/src/CometChatMessageComposer/resources/send_message.png +0 -0
- package/src/CometChatMessageComposer/resources/stickers.png +0 -0
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +1 -1
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +9 -6
- package/src/CometChatMessageList/CometChatMessageList.tsx +53 -64
- package/src/CometChatMessageList/MessageListConfiguration.ts +2 -0
- package/src/CometChatMessageList/resources/close.png +0 -0
- package/src/CometChatMessageList/resources/leftarrowcurve.png +0 -0
- package/src/CometChatMessages/CometChatMessages.tsx +1 -2
- package/src/CometChatMessages/resources/info.png +0 -0
- package/src/CometChatMessages/style.ts +0 -1
- package/src/CometChatThreadedMessages/resources/close.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Call.png +0 -0
- package/src/calls/CometChatCallButtons/resources/Video.png +0 -0
- package/src/calls/CometChatCallLogHistory/resources/Info.png +0 -0
- package/src/calls/CometChatCallLogRecordings/resources/download.png +0 -0
- package/src/calls/CometChatCallLogs/CallLogsConfiguration.ts +4 -4
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +2 -2
- package/src/calls/CometChatCallLogs/resources/Info.png +0 -0
- package/src/calls/CometChatOutgoingCall/resources/Close.png +0 -0
- package/src/calls/resources/Call.png +0 -0
- package/src/calls/resources/Video.png +0 -0
- package/src/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
- package/src/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
- package/src/extensions/MessageTranslation/resources/translate.png +0 -0
- package/src/extensions/Polls/resources/close.png +0 -0
- package/src/extensions/Polls/resources/document.png +0 -0
- package/src/extensions/Polls/resources/kickIcon.png +0 -0
- package/src/extensions/Polls/resources/rightTick.png +0 -0
- package/src/extensions/SmartReplies/resources/close.png +0 -0
- package/src/extensions/Stickers/resources/Stickers.png +0 -0
- package/src/shared/assets/images/checkmark.png +0 -0
- package/src/shared/assets/images/grey-double-tick-icon.png +0 -0
- package/src/shared/assets/images/grey-tick-icon.png +0 -0
- package/src/shared/constants/UIKitConstants.ts +12 -1
- package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +46 -1
- package/src/shared/framework/resources/audio-file.png +0 -0
- package/src/shared/framework/resources/circle_add.png +0 -0
- package/src/shared/framework/resources/copy.png +0 -0
- package/src/shared/framework/resources/delete.png +0 -0
- package/src/shared/framework/resources/edit.png +0 -0
- package/src/shared/framework/resources/file_upload.png +0 -0
- package/src/shared/framework/resources/image.png +0 -0
- package/src/shared/framework/resources/info.png +0 -0
- package/src/shared/framework/resources/messageInPrivate.png +0 -0
- package/src/shared/framework/resources/pause.png +0 -0
- package/src/shared/framework/resources/play.png +0 -0
- package/src/shared/framework/resources/send_message.png +0 -0
- package/src/shared/framework/resources/share.png +0 -0
- package/src/shared/framework/resources/thread.png +0 -0
- package/src/shared/framework/resources/video_upload.png +0 -0
- package/src/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
- package/src/shared/utils/CommonUtils.ts +43 -9
- package/src/shared/utils/DetailsUtils/resources/close.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/grid.png +0 -0
- package/src/shared/views/CometChatActionSheet/resources/list.png +0 -0
- package/src/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
- package/src/shared/views/CometChatAudioBubble/resources/play.png +0 -0
- package/src/shared/views/CometChatFileBubble/resources/download.png +0 -0
- package/src/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
- package/src/shared/views/CometChatFileBubble/style.ts +2 -0
- package/src/shared/views/CometChatList/CometChatList.tsx +13 -5
- package/src/shared/views/CometChatList/resources/checkmark.png +0 -0
- package/src/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.tsx +7 -4
- package/src/shared/views/CometChatVideoBubble/resources/play.png +0 -0
|
@@ -100,7 +100,7 @@ export default class DateTime {
|
|
|
100
100
|
*/
|
|
101
101
|
static fromMillis(milliseconds: number, options?: {
|
|
102
102
|
zone?: string | Zone;
|
|
103
|
-
locale?: string;
|
|
103
|
+
locale?: string | undefined;
|
|
104
104
|
outputCalendar: string;
|
|
105
105
|
numberingSystem: string;
|
|
106
106
|
}): DateTime;
|
|
@@ -116,7 +116,7 @@ export default class DateTime {
|
|
|
116
116
|
*/
|
|
117
117
|
static fromSeconds(seconds: number, options?: {
|
|
118
118
|
zone?: string | Zone;
|
|
119
|
-
locale?: string;
|
|
119
|
+
locale?: string | undefined;
|
|
120
120
|
outputCalendar: string;
|
|
121
121
|
numberingSystem: string;
|
|
122
122
|
}): DateTime;
|
|
@@ -169,7 +169,7 @@ export default class DateTime {
|
|
|
169
169
|
millisecond: number;
|
|
170
170
|
}, opts?: {
|
|
171
171
|
zone?: string | Zone;
|
|
172
|
-
locale?: string;
|
|
172
|
+
locale?: string | undefined;
|
|
173
173
|
outputCalendar: string;
|
|
174
174
|
numberingSystem: string;
|
|
175
175
|
}): DateTime;
|
|
@@ -191,10 +191,10 @@ export default class DateTime {
|
|
|
191
191
|
*/
|
|
192
192
|
static fromISO(text: string, opts?: {
|
|
193
193
|
zone?: string | Zone;
|
|
194
|
-
setZone?: boolean;
|
|
195
|
-
locale?: string;
|
|
196
|
-
outputCalendar?: string;
|
|
197
|
-
numberingSystem?: string;
|
|
194
|
+
setZone?: boolean | undefined;
|
|
195
|
+
locale?: string | undefined;
|
|
196
|
+
outputCalendar?: string | undefined;
|
|
197
|
+
numberingSystem?: string | undefined;
|
|
198
198
|
}): DateTime;
|
|
199
199
|
/**
|
|
200
200
|
* Create a DateTime from an RFC 2822 string
|
|
@@ -212,8 +212,8 @@ export default class DateTime {
|
|
|
212
212
|
*/
|
|
213
213
|
static fromRFC2822(text: string, opts?: {
|
|
214
214
|
zone?: string | Zone;
|
|
215
|
-
setZone?: boolean;
|
|
216
|
-
locale?: string;
|
|
215
|
+
setZone?: boolean | undefined;
|
|
216
|
+
locale?: string | undefined;
|
|
217
217
|
outputCalendar: string;
|
|
218
218
|
numberingSystem: string;
|
|
219
219
|
}): DateTime;
|
|
@@ -234,8 +234,8 @@ export default class DateTime {
|
|
|
234
234
|
*/
|
|
235
235
|
static fromHTTP(text: string, opts?: {
|
|
236
236
|
zone?: string | Zone;
|
|
237
|
-
setZone?: boolean;
|
|
238
|
-
locale?: string;
|
|
237
|
+
setZone?: boolean | undefined;
|
|
238
|
+
locale?: string | undefined;
|
|
239
239
|
outputCalendar: string;
|
|
240
240
|
numberingSystem: string;
|
|
241
241
|
}): DateTime;
|
|
@@ -254,8 +254,8 @@ export default class DateTime {
|
|
|
254
254
|
*/
|
|
255
255
|
static fromFormat(text: string, fmt: string, opts?: {
|
|
256
256
|
zone?: string | Zone;
|
|
257
|
-
setZone?: boolean;
|
|
258
|
-
locale?: string;
|
|
257
|
+
setZone?: boolean | undefined;
|
|
258
|
+
locale?: string | undefined;
|
|
259
259
|
numberingSystem: string;
|
|
260
260
|
outputCalendar: string;
|
|
261
261
|
}): DateTime;
|
|
@@ -285,8 +285,8 @@ export default class DateTime {
|
|
|
285
285
|
*/
|
|
286
286
|
static fromSQL(text: string, opts?: {
|
|
287
287
|
zone?: string | Zone;
|
|
288
|
-
setZone?: boolean;
|
|
289
|
-
locale?: string;
|
|
288
|
+
setZone?: boolean | undefined;
|
|
289
|
+
locale?: string | undefined;
|
|
290
290
|
numberingSystem: string;
|
|
291
291
|
outputCalendar: string;
|
|
292
292
|
}): DateTime;
|
|
@@ -296,7 +296,7 @@ export default class DateTime {
|
|
|
296
296
|
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
297
297
|
* @return {DateTime}
|
|
298
298
|
*/
|
|
299
|
-
static invalid(reason: string, explanation?: string): DateTime;
|
|
299
|
+
static invalid(reason: string, explanation?: string | undefined): DateTime;
|
|
300
300
|
/**
|
|
301
301
|
* Check if an object is an instance of DateTime. Works across context boundaries
|
|
302
302
|
* @param {object} o
|
|
@@ -337,121 +337,121 @@ export default class DateTime {
|
|
|
337
337
|
* @param {Object} options - options taken by fromFormat()
|
|
338
338
|
* @return {Object}
|
|
339
339
|
*/
|
|
340
|
-
static fromFormatExplain(text: string, fmt: string, options?:
|
|
340
|
+
static fromFormatExplain(text: string, fmt: string, options?: Object): Object;
|
|
341
341
|
/**
|
|
342
342
|
* @deprecated use fromFormatExplain instead
|
|
343
343
|
*/
|
|
344
|
-
static fromStringExplain(text: any, fmt: any, options?: {}):
|
|
344
|
+
static fromStringExplain(text: any, fmt: any, options?: {}): Object;
|
|
345
345
|
/**
|
|
346
346
|
* {@link DateTime#toLocaleString} format like 10/14/1983
|
|
347
347
|
* @type {Object}
|
|
348
348
|
*/
|
|
349
|
-
static get DATE_SHORT():
|
|
349
|
+
static get DATE_SHORT(): Object;
|
|
350
350
|
/**
|
|
351
351
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
|
352
352
|
* @type {Object}
|
|
353
353
|
*/
|
|
354
|
-
static get DATE_MED():
|
|
354
|
+
static get DATE_MED(): Object;
|
|
355
355
|
/**
|
|
356
356
|
* {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
357
357
|
* @type {Object}
|
|
358
358
|
*/
|
|
359
|
-
static get DATE_MED_WITH_WEEKDAY():
|
|
359
|
+
static get DATE_MED_WITH_WEEKDAY(): Object;
|
|
360
360
|
/**
|
|
361
361
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
|
362
362
|
* @type {Object}
|
|
363
363
|
*/
|
|
364
|
-
static get DATE_FULL():
|
|
364
|
+
static get DATE_FULL(): Object;
|
|
365
365
|
/**
|
|
366
366
|
* {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
367
367
|
* @type {Object}
|
|
368
368
|
*/
|
|
369
|
-
static get DATE_HUGE():
|
|
369
|
+
static get DATE_HUGE(): Object;
|
|
370
370
|
/**
|
|
371
371
|
* {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
372
372
|
* @type {Object}
|
|
373
373
|
*/
|
|
374
|
-
static get TIME_SIMPLE():
|
|
374
|
+
static get TIME_SIMPLE(): Object;
|
|
375
375
|
/**
|
|
376
376
|
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
377
377
|
* @type {Object}
|
|
378
378
|
*/
|
|
379
|
-
static get TIME_WITH_SECONDS():
|
|
379
|
+
static get TIME_WITH_SECONDS(): Object;
|
|
380
380
|
/**
|
|
381
381
|
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
382
382
|
* @type {Object}
|
|
383
383
|
*/
|
|
384
|
-
static get TIME_WITH_SHORT_OFFSET():
|
|
384
|
+
static get TIME_WITH_SHORT_OFFSET(): Object;
|
|
385
385
|
/**
|
|
386
386
|
* {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
387
387
|
* @type {Object}
|
|
388
388
|
*/
|
|
389
|
-
static get TIME_WITH_LONG_OFFSET():
|
|
389
|
+
static get TIME_WITH_LONG_OFFSET(): Object;
|
|
390
390
|
/**
|
|
391
391
|
* {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
|
|
392
392
|
* @type {Object}
|
|
393
393
|
*/
|
|
394
|
-
static get TIME_24_SIMPLE():
|
|
394
|
+
static get TIME_24_SIMPLE(): Object;
|
|
395
395
|
/**
|
|
396
396
|
* {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
|
|
397
397
|
* @type {Object}
|
|
398
398
|
*/
|
|
399
|
-
static get TIME_24_WITH_SECONDS():
|
|
399
|
+
static get TIME_24_WITH_SECONDS(): Object;
|
|
400
400
|
/**
|
|
401
401
|
* {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
402
402
|
* @type {Object}
|
|
403
403
|
*/
|
|
404
|
-
static get TIME_24_WITH_SHORT_OFFSET():
|
|
404
|
+
static get TIME_24_WITH_SHORT_OFFSET(): Object;
|
|
405
405
|
/**
|
|
406
406
|
* {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
407
407
|
* @type {Object}
|
|
408
408
|
*/
|
|
409
|
-
static get TIME_24_WITH_LONG_OFFSET():
|
|
409
|
+
static get TIME_24_WITH_LONG_OFFSET(): Object;
|
|
410
410
|
/**
|
|
411
411
|
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
412
412
|
* @type {Object}
|
|
413
413
|
*/
|
|
414
|
-
static get DATETIME_SHORT():
|
|
414
|
+
static get DATETIME_SHORT(): Object;
|
|
415
415
|
/**
|
|
416
416
|
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
417
417
|
* @type {Object}
|
|
418
418
|
*/
|
|
419
|
-
static get DATETIME_SHORT_WITH_SECONDS():
|
|
419
|
+
static get DATETIME_SHORT_WITH_SECONDS(): Object;
|
|
420
420
|
/**
|
|
421
421
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
422
422
|
* @type {Object}
|
|
423
423
|
*/
|
|
424
|
-
static get DATETIME_MED():
|
|
424
|
+
static get DATETIME_MED(): Object;
|
|
425
425
|
/**
|
|
426
426
|
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
427
427
|
* @type {Object}
|
|
428
428
|
*/
|
|
429
|
-
static get DATETIME_MED_WITH_SECONDS():
|
|
429
|
+
static get DATETIME_MED_WITH_SECONDS(): Object;
|
|
430
430
|
/**
|
|
431
431
|
* {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
432
432
|
* @type {Object}
|
|
433
433
|
*/
|
|
434
|
-
static get DATETIME_MED_WITH_WEEKDAY():
|
|
434
|
+
static get DATETIME_MED_WITH_WEEKDAY(): Object;
|
|
435
435
|
/**
|
|
436
436
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
437
437
|
* @type {Object}
|
|
438
438
|
*/
|
|
439
|
-
static get DATETIME_FULL():
|
|
439
|
+
static get DATETIME_FULL(): Object;
|
|
440
440
|
/**
|
|
441
441
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
442
442
|
* @type {Object}
|
|
443
443
|
*/
|
|
444
|
-
static get DATETIME_FULL_WITH_SECONDS():
|
|
444
|
+
static get DATETIME_FULL_WITH_SECONDS(): Object;
|
|
445
445
|
/**
|
|
446
446
|
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
447
447
|
* @type {Object}
|
|
448
448
|
*/
|
|
449
|
-
static get DATETIME_HUGE():
|
|
449
|
+
static get DATETIME_HUGE(): Object;
|
|
450
450
|
/**
|
|
451
451
|
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
452
452
|
* @type {Object}
|
|
453
453
|
*/
|
|
454
|
-
static get DATETIME_HUGE_WITH_SECONDS():
|
|
454
|
+
static get DATETIME_HUGE_WITH_SECONDS(): Object;
|
|
455
455
|
/**
|
|
456
456
|
* @access private
|
|
457
457
|
*/
|
|
@@ -753,7 +753,7 @@ export default class DateTime {
|
|
|
753
753
|
* @param {Object} opts - the same options as toLocaleString
|
|
754
754
|
* @return {Object}
|
|
755
755
|
*/
|
|
756
|
-
resolvedLocaleOptions(opts?:
|
|
756
|
+
resolvedLocaleOptions(opts?: Object): Object;
|
|
757
757
|
/**
|
|
758
758
|
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
|
759
759
|
*
|
|
@@ -762,7 +762,7 @@ export default class DateTime {
|
|
|
762
762
|
* @param {Object} [opts={}] - options to pass to `setZone()`
|
|
763
763
|
* @return {DateTime}
|
|
764
764
|
*/
|
|
765
|
-
toUTC(offset?: number, opts?:
|
|
765
|
+
toUTC(offset?: number | undefined, opts?: Object | undefined): DateTime;
|
|
766
766
|
/**
|
|
767
767
|
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
|
768
768
|
*
|
|
@@ -780,7 +780,7 @@ export default class DateTime {
|
|
|
780
780
|
* @return {DateTime}
|
|
781
781
|
*/
|
|
782
782
|
setZone(zone?: string | Zone, { keepLocalTime, keepCalendarTime }?: {
|
|
783
|
-
keepLocalTime?: boolean;
|
|
783
|
+
keepLocalTime?: boolean | undefined;
|
|
784
784
|
}): DateTime;
|
|
785
785
|
/**
|
|
786
786
|
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
|
@@ -788,7 +788,7 @@ export default class DateTime {
|
|
|
788
788
|
* @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
|
|
789
789
|
* @return {DateTime}
|
|
790
790
|
*/
|
|
791
|
-
reconfigure({ locale, numberingSystem, outputCalendar }?:
|
|
791
|
+
reconfigure({ locale, numberingSystem, outputCalendar }?: Object): DateTime;
|
|
792
792
|
/**
|
|
793
793
|
* "Set" the locale. Returns a newly-constructed DateTime.
|
|
794
794
|
* Just a convenient alias for reconfigure({ locale })
|
|
@@ -809,7 +809,7 @@ export default class DateTime {
|
|
|
809
809
|
* @example dt.set({ year: 2005, ordinal: 234 })
|
|
810
810
|
* @return {DateTime}
|
|
811
811
|
*/
|
|
812
|
-
set(values:
|
|
812
|
+
set(values: Object): DateTime;
|
|
813
813
|
/**
|
|
814
814
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
815
815
|
*
|
|
@@ -823,14 +823,14 @@ export default class DateTime {
|
|
|
823
823
|
* @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
|
|
824
824
|
* @return {DateTime}
|
|
825
825
|
*/
|
|
826
|
-
plus(duration: Duration |
|
|
826
|
+
plus(duration: Duration | Object | number): DateTime;
|
|
827
827
|
/**
|
|
828
828
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
|
829
829
|
* See {@link DateTime#plus}
|
|
830
830
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
831
831
|
@return {DateTime}
|
|
832
832
|
*/
|
|
833
|
-
minus(duration: Duration |
|
|
833
|
+
minus(duration: Duration | Object | number): DateTime;
|
|
834
834
|
/**
|
|
835
835
|
* "Set" this DateTime to the beginning of a unit of time.
|
|
836
836
|
* @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
|
@@ -844,7 +844,7 @@ export default class DateTime {
|
|
|
844
844
|
* @return {DateTime}
|
|
845
845
|
*/
|
|
846
846
|
startOf(unit: string, { useLocaleWeeks }?: {
|
|
847
|
-
useLocaleWeeks?: boolean;
|
|
847
|
+
useLocaleWeeks?: boolean | undefined;
|
|
848
848
|
}): DateTime;
|
|
849
849
|
/**
|
|
850
850
|
* "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
|
|
@@ -859,7 +859,7 @@ export default class DateTime {
|
|
|
859
859
|
* @return {DateTime}
|
|
860
860
|
*/
|
|
861
861
|
endOf(unit: string, opts: {
|
|
862
|
-
useLocaleWeeks?: boolean;
|
|
862
|
+
useLocaleWeeks?: boolean | undefined;
|
|
863
863
|
}): DateTime;
|
|
864
864
|
/**
|
|
865
865
|
* Returns a string representation of this DateTime formatted according to the specified format string.
|
|
@@ -873,7 +873,7 @@ export default class DateTime {
|
|
|
873
873
|
* @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
|
|
874
874
|
* @return {string}
|
|
875
875
|
*/
|
|
876
|
-
toFormat(fmt: string, opts?:
|
|
876
|
+
toFormat(fmt: string, opts?: Object): string;
|
|
877
877
|
/**
|
|
878
878
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
|
879
879
|
* The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
|
|
@@ -893,7 +893,7 @@ export default class DateTime {
|
|
|
893
893
|
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
|
894
894
|
* @return {string}
|
|
895
895
|
*/
|
|
896
|
-
toLocaleString(formatOpts?:
|
|
896
|
+
toLocaleString(formatOpts?: Object, opts?: Object): string;
|
|
897
897
|
/**
|
|
898
898
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
|
899
899
|
* Defaults to the system's locale if no locale has been specified
|
|
@@ -907,7 +907,7 @@ export default class DateTime {
|
|
|
907
907
|
* //=> { type: 'year', value: '1982' }
|
|
908
908
|
* //=> ]
|
|
909
909
|
*/
|
|
910
|
-
toLocaleParts(opts?:
|
|
910
|
+
toLocaleParts(opts?: Object): any;
|
|
911
911
|
/**
|
|
912
912
|
* Returns an ISO 8601-compliant string representation of this DateTime
|
|
913
913
|
* @param {Object} opts - options
|
|
@@ -923,11 +923,11 @@ export default class DateTime {
|
|
|
923
923
|
* @return {string}
|
|
924
924
|
*/
|
|
925
925
|
toISO({ format, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone, }?: {
|
|
926
|
-
suppressMilliseconds?: boolean;
|
|
927
|
-
suppressSeconds?: boolean;
|
|
928
|
-
includeOffset?: boolean;
|
|
929
|
-
extendedZone?: boolean;
|
|
930
|
-
format?: string;
|
|
926
|
+
suppressMilliseconds?: boolean | undefined;
|
|
927
|
+
suppressSeconds?: boolean | undefined;
|
|
928
|
+
includeOffset?: boolean | undefined;
|
|
929
|
+
extendedZone?: boolean | undefined;
|
|
930
|
+
format?: string | undefined;
|
|
931
931
|
}): string;
|
|
932
932
|
/**
|
|
933
933
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
@@ -938,7 +938,7 @@ export default class DateTime {
|
|
|
938
938
|
* @return {string}
|
|
939
939
|
*/
|
|
940
940
|
toISODate({ format }?: {
|
|
941
|
-
format?: string;
|
|
941
|
+
format?: string | undefined;
|
|
942
942
|
}): string;
|
|
943
943
|
/**
|
|
944
944
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
@@ -962,12 +962,12 @@ export default class DateTime {
|
|
|
962
962
|
* @return {string}
|
|
963
963
|
*/
|
|
964
964
|
toISOTime({ suppressMilliseconds, suppressSeconds, includeOffset, includePrefix, extendedZone, format, }?: {
|
|
965
|
-
suppressMilliseconds?: boolean;
|
|
966
|
-
suppressSeconds?: boolean;
|
|
967
|
-
includeOffset?: boolean;
|
|
968
|
-
extendedZone?: boolean;
|
|
969
|
-
includePrefix?: boolean;
|
|
970
|
-
format?: string;
|
|
965
|
+
suppressMilliseconds?: boolean | undefined;
|
|
966
|
+
suppressSeconds?: boolean | undefined;
|
|
967
|
+
includeOffset?: boolean | undefined;
|
|
968
|
+
extendedZone?: boolean | undefined;
|
|
969
|
+
includePrefix?: boolean | undefined;
|
|
970
|
+
format?: string | undefined;
|
|
971
971
|
}): string;
|
|
972
972
|
/**
|
|
973
973
|
* Returns an RFC 2822-compatible string representation of this DateTime
|
|
@@ -1004,9 +1004,9 @@ export default class DateTime {
|
|
|
1004
1004
|
* @return {string}
|
|
1005
1005
|
*/
|
|
1006
1006
|
toSQLTime({ includeOffset, includeZone, includeOffsetSpace }?: {
|
|
1007
|
-
includeZone?: boolean;
|
|
1008
|
-
includeOffset?: boolean;
|
|
1009
|
-
includeOffsetSpace?: boolean;
|
|
1007
|
+
includeZone?: boolean | undefined;
|
|
1008
|
+
includeOffset?: boolean | undefined;
|
|
1009
|
+
includeOffsetSpace?: boolean | undefined;
|
|
1010
1010
|
}): string;
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
@@ -1021,9 +1021,9 @@ export default class DateTime {
|
|
|
1021
1021
|
* @return {string}
|
|
1022
1022
|
*/
|
|
1023
1023
|
toSQL(opts?: {
|
|
1024
|
-
includeZone?: boolean;
|
|
1025
|
-
includeOffset?: boolean;
|
|
1026
|
-
includeOffsetSpace?: boolean;
|
|
1024
|
+
includeZone?: boolean | undefined;
|
|
1025
|
+
includeOffset?: boolean | undefined;
|
|
1026
|
+
includeOffsetSpace?: boolean | undefined;
|
|
1027
1027
|
}): string;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Returns a string representation of this DateTime appropriate for debugging
|
|
@@ -1067,7 +1067,7 @@ export default class DateTime {
|
|
|
1067
1067
|
* @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
|
|
1068
1068
|
* @return {Object}
|
|
1069
1069
|
*/
|
|
1070
|
-
toObject(opts?: {}):
|
|
1070
|
+
toObject(opts?: {}): Object;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Returns a JavaScript Date equivalent to this DateTime.
|
|
1073
1073
|
* @return {Date}
|
|
@@ -1088,8 +1088,8 @@ export default class DateTime {
|
|
|
1088
1088
|
* i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
|
|
1089
1089
|
* @return {Duration}
|
|
1090
1090
|
*/
|
|
1091
|
-
diff(otherDateTime: DateTime, unit?: string | string[], opts?: {
|
|
1092
|
-
conversionAccuracy?: string;
|
|
1091
|
+
diff(otherDateTime: DateTime, unit?: string | string[] | undefined, opts?: {
|
|
1092
|
+
conversionAccuracy?: string | undefined;
|
|
1093
1093
|
}): Duration;
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Return the difference between this DateTime and right now.
|
|
@@ -1099,8 +1099,8 @@ export default class DateTime {
|
|
|
1099
1099
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
1100
1100
|
* @return {Duration}
|
|
1101
1101
|
*/
|
|
1102
|
-
diffNow(unit?: string | string[], opts?: {
|
|
1103
|
-
conversionAccuracy?: string;
|
|
1102
|
+
diffNow(unit?: string | string[] | undefined, opts?: {
|
|
1103
|
+
conversionAccuracy?: string | undefined;
|
|
1104
1104
|
}): Duration;
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Return an Interval spanning between this DateTime and another DateTime
|
|
@@ -1120,7 +1120,7 @@ export default class DateTime {
|
|
|
1120
1120
|
* @return {boolean}
|
|
1121
1121
|
*/
|
|
1122
1122
|
hasSame(otherDateTime: DateTime, unit: string, opts: {
|
|
1123
|
-
useLocaleWeeks?: boolean;
|
|
1123
|
+
useLocaleWeeks?: boolean | undefined;
|
|
1124
1124
|
}): boolean;
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Equality check
|
|
@@ -1149,11 +1149,11 @@ export default class DateTime {
|
|
|
1149
1149
|
* @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
|
|
1150
1150
|
*/
|
|
1151
1151
|
toRelative(options?: {
|
|
1152
|
-
base?: DateTime;
|
|
1153
|
-
style?: string;
|
|
1152
|
+
base?: DateTime | undefined;
|
|
1153
|
+
style?: string | undefined;
|
|
1154
1154
|
unit: string | string[];
|
|
1155
|
-
round?: boolean;
|
|
1156
|
-
padding?: number;
|
|
1155
|
+
round?: boolean | undefined;
|
|
1156
|
+
padding?: number | undefined;
|
|
1157
1157
|
locale: string;
|
|
1158
1158
|
numberingSystem: string;
|
|
1159
1159
|
}): any;
|
|
@@ -1171,7 +1171,7 @@ export default class DateTime {
|
|
|
1171
1171
|
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
|
1172
1172
|
*/
|
|
1173
1173
|
toRelativeCalendar(options?: {
|
|
1174
|
-
base?: DateTime;
|
|
1174
|
+
base?: DateTime | undefined;
|
|
1175
1175
|
locale: string;
|
|
1176
1176
|
unit: string;
|
|
1177
1177
|
numberingSystem: string;
|
|
@@ -166,9 +166,9 @@ export default class Duration {
|
|
|
166
166
|
* @return {Duration}
|
|
167
167
|
*/
|
|
168
168
|
static fromMillis(count: number, opts: {
|
|
169
|
-
locale?: string;
|
|
169
|
+
locale?: string | undefined;
|
|
170
170
|
numberingSystem: string;
|
|
171
|
-
conversionAccuracy?: string;
|
|
171
|
+
conversionAccuracy?: string | undefined;
|
|
172
172
|
}): Duration;
|
|
173
173
|
/**
|
|
174
174
|
* Create a Duration from a JavaScript object with keys like 'years' and 'hours'.
|
|
@@ -201,11 +201,11 @@ export default class Duration {
|
|
|
201
201
|
seconds: number;
|
|
202
202
|
milliseconds: number;
|
|
203
203
|
}, opts?: {
|
|
204
|
-
locale?: string;
|
|
204
|
+
locale?: string | undefined;
|
|
205
205
|
numberingSystem: string;
|
|
206
|
-
conversionAccuracy?: string;
|
|
207
|
-
matrix?: string;
|
|
208
|
-
}): Duration;
|
|
206
|
+
conversionAccuracy?: string | undefined;
|
|
207
|
+
matrix?: string | undefined;
|
|
208
|
+
} | undefined): Duration;
|
|
209
209
|
/**
|
|
210
210
|
* Create a Duration from DurationLike.
|
|
211
211
|
*
|
|
@@ -216,7 +216,7 @@ export default class Duration {
|
|
|
216
216
|
* - Duration instance
|
|
217
217
|
* @return {Duration}
|
|
218
218
|
*/
|
|
219
|
-
static fromDurationLike(durationLike:
|
|
219
|
+
static fromDurationLike(durationLike: Object | number | Duration): Duration;
|
|
220
220
|
/**
|
|
221
221
|
* Create a Duration from an ISO 8601 duration string.
|
|
222
222
|
* @param {string} text - text to parse
|
|
@@ -232,10 +232,10 @@ export default class Duration {
|
|
|
232
232
|
* @return {Duration}
|
|
233
233
|
*/
|
|
234
234
|
static fromISO(text: string, opts: {
|
|
235
|
-
locale?: string;
|
|
235
|
+
locale?: string | undefined;
|
|
236
236
|
numberingSystem: string;
|
|
237
|
-
conversionAccuracy?: string;
|
|
238
|
-
matrix?: string;
|
|
237
|
+
conversionAccuracy?: string | undefined;
|
|
238
|
+
matrix?: string | undefined;
|
|
239
239
|
}): Duration;
|
|
240
240
|
/**
|
|
241
241
|
* Create a Duration from an ISO 8601 time string.
|
|
@@ -254,10 +254,10 @@ export default class Duration {
|
|
|
254
254
|
* @return {Duration}
|
|
255
255
|
*/
|
|
256
256
|
static fromISOTime(text: string, opts: {
|
|
257
|
-
locale?: string;
|
|
257
|
+
locale?: string | undefined;
|
|
258
258
|
numberingSystem: string;
|
|
259
|
-
conversionAccuracy?: string;
|
|
260
|
-
matrix?: string;
|
|
259
|
+
conversionAccuracy?: string | undefined;
|
|
260
|
+
matrix?: string | undefined;
|
|
261
261
|
}): Duration;
|
|
262
262
|
/**
|
|
263
263
|
* Create an invalid Duration.
|
|
@@ -265,7 +265,7 @@ export default class Duration {
|
|
|
265
265
|
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
266
266
|
* @return {Duration}
|
|
267
267
|
*/
|
|
268
|
-
static invalid(reason: string, explanation?: string): Duration;
|
|
268
|
+
static invalid(reason: string, explanation?: string | undefined): Duration;
|
|
269
269
|
/**
|
|
270
270
|
* @private
|
|
271
271
|
*/
|
|
@@ -391,7 +391,7 @@ export default class Duration {
|
|
|
391
391
|
* @return {string}
|
|
392
392
|
*/
|
|
393
393
|
toFormat(fmt: string, opts?: {
|
|
394
|
-
floor?: boolean;
|
|
394
|
+
floor?: boolean | undefined;
|
|
395
395
|
}): string;
|
|
396
396
|
/**
|
|
397
397
|
* Returns a string representation of a Duration with all units included.
|
|
@@ -408,14 +408,14 @@ export default class Duration {
|
|
|
408
408
|
* ```
|
|
409
409
|
*/
|
|
410
410
|
toHuman(opts?: {
|
|
411
|
-
listStyle?: string;
|
|
411
|
+
listStyle?: string | undefined;
|
|
412
412
|
}): any;
|
|
413
413
|
/**
|
|
414
414
|
* Returns a JavaScript object with this Duration's values.
|
|
415
415
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
|
416
416
|
* @return {Object}
|
|
417
417
|
*/
|
|
418
|
-
toObject():
|
|
418
|
+
toObject(): Object;
|
|
419
419
|
/**
|
|
420
420
|
* Returns an ISO 8601-compliant string representation of this Duration.
|
|
421
421
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
@@ -444,10 +444,10 @@ export default class Duration {
|
|
|
444
444
|
* @return {string}
|
|
445
445
|
*/
|
|
446
446
|
toISOTime(opts?: {
|
|
447
|
-
suppressMilliseconds?: boolean;
|
|
448
|
-
suppressSeconds?: boolean;
|
|
449
|
-
includePrefix?: boolean;
|
|
450
|
-
format?: string;
|
|
447
|
+
suppressMilliseconds?: boolean | undefined;
|
|
448
|
+
suppressSeconds?: boolean | undefined;
|
|
449
|
+
includePrefix?: boolean | undefined;
|
|
450
|
+
format?: string | undefined;
|
|
451
451
|
}): string;
|
|
452
452
|
/**
|
|
453
453
|
* Returns an ISO 8601 representation of this Duration appropriate for use in JSON.
|
|
@@ -474,13 +474,13 @@ export default class Duration {
|
|
|
474
474
|
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
475
475
|
* @return {Duration}
|
|
476
476
|
*/
|
|
477
|
-
plus(duration: Duration |
|
|
477
|
+
plus(duration: Duration | Object | number): Duration;
|
|
478
478
|
/**
|
|
479
479
|
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
|
480
480
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
481
481
|
* @return {Duration}
|
|
482
482
|
*/
|
|
483
|
-
minus(duration: Duration |
|
|
483
|
+
minus(duration: Duration | Object | number): Duration;
|
|
484
484
|
/**
|
|
485
485
|
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
|
486
486
|
* @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
|
|
@@ -505,7 +505,7 @@ export default class Duration {
|
|
|
505
505
|
* @example dur.set({ hours: 8, minutes: 30 })
|
|
506
506
|
* @return {Duration}
|
|
507
507
|
*/
|
|
508
|
-
set(values:
|
|
508
|
+
set(values: Object): Duration;
|
|
509
509
|
/**
|
|
510
510
|
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
|
511
511
|
* @example dur.reconfigure({ locale: 'en-GB' })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function months(length: any): string[];
|
|
2
|
-
export function weekdays(length: any): string[];
|
|
3
|
-
export function eras(length: any): string[];
|
|
1
|
+
export function months(length: any): string[] | null;
|
|
2
|
+
export function weekdays(length: any): string[] | null;
|
|
3
|
+
export function eras(length: any): string[] | null;
|
|
4
4
|
export function meridiemForDateTime(dt: any): string;
|
|
5
5
|
export function weekdayForDateTime(dt: any, length: any): string;
|
|
6
6
|
export function monthForDateTime(dt: any, length: any): string;
|
|
@@ -11,26 +11,26 @@ export function hasLocaleWeekInfo(): boolean;
|
|
|
11
11
|
export function maybeArray(thing: any): any[];
|
|
12
12
|
export function bestBy(arr: any, by: any, compare: any): any;
|
|
13
13
|
export function pick(obj: any, keys: any): any;
|
|
14
|
-
export function hasOwnProperty(obj: any, prop: any):
|
|
14
|
+
export function hasOwnProperty(obj: any, prop: any): boolean;
|
|
15
15
|
export function validateWeekSettings(settings: any): {
|
|
16
16
|
firstDay: any;
|
|
17
17
|
minimalDays: any;
|
|
18
18
|
weekend: any[];
|
|
19
|
-
};
|
|
19
|
+
} | null;
|
|
20
20
|
export function integerBetween(thing: any, bottom: any, top: any): boolean;
|
|
21
21
|
export function floorMod(x: any, n: any): number;
|
|
22
22
|
export function padStart(input: any, n?: number): string;
|
|
23
|
-
export function parseInteger(string: any): number;
|
|
24
|
-
export function parseFloating(string: any): number;
|
|
25
|
-
export function parseMillis(fraction: any): number;
|
|
23
|
+
export function parseInteger(string: any): number | undefined;
|
|
24
|
+
export function parseFloating(string: any): number | undefined;
|
|
25
|
+
export function parseMillis(fraction: any): number | undefined;
|
|
26
26
|
export function roundTo(number: any, digits: any, towardZero?: boolean): number;
|
|
27
27
|
export function isLeapYear(year: any): boolean;
|
|
28
28
|
export function daysInYear(year: any): 366 | 365;
|
|
29
|
-
export function daysInMonth(year: any, month: any): number;
|
|
29
|
+
export function daysInMonth(year: any, month: any): number | null;
|
|
30
30
|
export function objToLocalTS(obj: any): number;
|
|
31
31
|
export function weeksInWeekYear(weekYear: any, minDaysInFirstWeek?: number, startOfWeek?: number): number;
|
|
32
32
|
export function untruncateYear(year: any): any;
|
|
33
|
-
export function parseZoneInfo(ts: any, offsetFormat: any, locale: any, timeZone?:
|
|
33
|
+
export function parseZoneInfo(ts: any, offsetFormat: any, locale: any, timeZone?: null): string | null;
|
|
34
34
|
export function signedOffset(offHourStr: any, offMinuteStr: any): number;
|
|
35
35
|
export function asNumber(value: any): number;
|
|
36
36
|
export function normalizeObject(obj: any, normalizer: any): {};
|