@ebarooni/capacitor-calendar 0.3.1 → 0.4.0

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/dist/docs.json CHANGED
@@ -174,7 +174,7 @@
174
174
  },
175
175
  {
176
176
  "name": "example",
177
- "text": "if (capacitor.getPlatform() === 'ios') {\n const selectedCalendars = await selectCalendarsWithPrompt();\n console.log(selectedCalendars); // [{ id: '1', title: 'Work Calendar' }]\n}"
177
+ "text": "if (capacitor.getPlatform() === 'ios') {\n const { result } = await selectCalendarsWithPrompt();\n console.log(result); // [{ id: '1', title: 'Work Calendar' }]\n}"
178
178
  }
179
179
  ],
180
180
  "docs": "Presents a prompt to the user to select calendars. This method is available only on iOS.",
@@ -204,7 +204,7 @@
204
204
  },
205
205
  {
206
206
  "name": "example",
207
- "text": "const calendars = await listCalendars();\nconsole.log(calendars); // [{ id: '1', title: 'Work Calendar' }, { id: '2', title: 'Personal Calendar' }]"
207
+ "text": "const { result } = await listCalendars();\nconsole.log(result); // [{ id: '1', title: 'Work Calendar' }, { id: '2', title: 'Personal Calendar' }]"
208
208
  }
209
209
  ],
210
210
  "docs": "Retrieves a list of calendars available on the device.",
@@ -219,9 +219,6 @@
219
219
  "parameters": [],
220
220
  "returns": "Promise<{ result: Calendar; }>",
221
221
  "tags": [
222
- {
223
- "name": "async"
224
- },
225
222
  {
226
223
  "name": "method",
227
224
  "text": "getDefaultCalendar"
@@ -232,7 +229,7 @@
232
229
  },
233
230
  {
234
231
  "name": "example",
235
- "text": "const defaultCalendar = await getDefaultCalendar();\nconsole.log(defaultCalendar); // { id: '1', title: 'Default Calendar' }"
232
+ "text": "const { result } = await getDefaultCalendar();\nconsole.log(result); // { id: '1', title: 'Default Calendar' }"
236
233
  }
237
234
  ],
238
235
  "docs": "Retrieves the default calendar set on the device.",
@@ -240,6 +237,41 @@
240
237
  "Calendar"
241
238
  ],
242
239
  "slug": "getdefaultcalendar"
240
+ },
241
+ {
242
+ "name": "createEvent",
243
+ "signature": "(options: { title: string; calendarId?: string; location?: string; startDate?: Date; endDate?: Date; isAllDay?: boolean; }) => Promise<{ eventCreated: boolean; }>",
244
+ "parameters": [
245
+ {
246
+ "name": "options",
247
+ "docs": "- Options for creating the event.",
248
+ "type": "{ title: string; calendarId?: string | undefined; location?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; isAllDay?: boolean | undefined; }"
249
+ }
250
+ ],
251
+ "returns": "Promise<{ eventCreated: boolean; }>",
252
+ "tags": [
253
+ {
254
+ "name": "method",
255
+ "text": "createEvent"
256
+ },
257
+ {
258
+ "name": "param",
259
+ "text": "options - Options for creating the event."
260
+ },
261
+ {
262
+ "name": "returns",
263
+ "text": "A Promise that resolves with an object indicating whether the event was created successfully.\nThe resolved object has a property 'eventCreated' which is a boolean value representing whether the event was created."
264
+ },
265
+ {
266
+ "name": "example",
267
+ "text": "const now = Date.now();\nconst eventOptions = {\n title: 'Team Meeting',\n location: 'Conference Room A',\n startDate: new Date(now),\n endDate: new Date(now + 2 * 60 * 60 * 1000),\n isAllDay: false\n};\nconst { eventCreated } = await createEvent(eventOptions);\nconsole.log(eventCreated); // true"
268
+ }
269
+ ],
270
+ "docs": "Creates an event with the provided options.",
271
+ "complexTypes": [
272
+ "Date"
273
+ ],
274
+ "slug": "createevent"
243
275
  }
244
276
  ],
245
277
  "properties": []
@@ -311,6 +343,778 @@
311
343
  "type": "string"
312
344
  }
313
345
  ]
346
+ },
347
+ {
348
+ "name": "Date",
349
+ "slug": "date",
350
+ "docs": "Enables basic storage and retrieval of dates and times.",
351
+ "tags": [],
352
+ "methods": [
353
+ {
354
+ "name": "toString",
355
+ "signature": "() => string",
356
+ "parameters": [],
357
+ "returns": "string",
358
+ "tags": [],
359
+ "docs": "Returns a string representation of a date. The format of the string depends on the locale.",
360
+ "complexTypes": [],
361
+ "slug": "tostring"
362
+ },
363
+ {
364
+ "name": "toDateString",
365
+ "signature": "() => string",
366
+ "parameters": [],
367
+ "returns": "string",
368
+ "tags": [],
369
+ "docs": "Returns a date as a string value.",
370
+ "complexTypes": [],
371
+ "slug": "todatestring"
372
+ },
373
+ {
374
+ "name": "toTimeString",
375
+ "signature": "() => string",
376
+ "parameters": [],
377
+ "returns": "string",
378
+ "tags": [],
379
+ "docs": "Returns a time as a string value.",
380
+ "complexTypes": [],
381
+ "slug": "totimestring"
382
+ },
383
+ {
384
+ "name": "toLocaleString",
385
+ "signature": "() => string",
386
+ "parameters": [],
387
+ "returns": "string",
388
+ "tags": [],
389
+ "docs": "Returns a value as a string value appropriate to the host environment's current locale.",
390
+ "complexTypes": [],
391
+ "slug": "tolocalestring"
392
+ },
393
+ {
394
+ "name": "toLocaleDateString",
395
+ "signature": "() => string",
396
+ "parameters": [],
397
+ "returns": "string",
398
+ "tags": [],
399
+ "docs": "Returns a date as a string value appropriate to the host environment's current locale.",
400
+ "complexTypes": [],
401
+ "slug": "tolocaledatestring"
402
+ },
403
+ {
404
+ "name": "toLocaleTimeString",
405
+ "signature": "() => string",
406
+ "parameters": [],
407
+ "returns": "string",
408
+ "tags": [],
409
+ "docs": "Returns a time as a string value appropriate to the host environment's current locale.",
410
+ "complexTypes": [],
411
+ "slug": "tolocaletimestring"
412
+ },
413
+ {
414
+ "name": "valueOf",
415
+ "signature": "() => number",
416
+ "parameters": [],
417
+ "returns": "number",
418
+ "tags": [],
419
+ "docs": "Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.",
420
+ "complexTypes": [],
421
+ "slug": "valueof"
422
+ },
423
+ {
424
+ "name": "getTime",
425
+ "signature": "() => number",
426
+ "parameters": [],
427
+ "returns": "number",
428
+ "tags": [],
429
+ "docs": "Gets the time value in milliseconds.",
430
+ "complexTypes": [],
431
+ "slug": "gettime"
432
+ },
433
+ {
434
+ "name": "getFullYear",
435
+ "signature": "() => number",
436
+ "parameters": [],
437
+ "returns": "number",
438
+ "tags": [],
439
+ "docs": "Gets the year, using local time.",
440
+ "complexTypes": [],
441
+ "slug": "getfullyear"
442
+ },
443
+ {
444
+ "name": "getUTCFullYear",
445
+ "signature": "() => number",
446
+ "parameters": [],
447
+ "returns": "number",
448
+ "tags": [],
449
+ "docs": "Gets the year using Universal Coordinated Time (UTC).",
450
+ "complexTypes": [],
451
+ "slug": "getutcfullyear"
452
+ },
453
+ {
454
+ "name": "getMonth",
455
+ "signature": "() => number",
456
+ "parameters": [],
457
+ "returns": "number",
458
+ "tags": [],
459
+ "docs": "Gets the month, using local time.",
460
+ "complexTypes": [],
461
+ "slug": "getmonth"
462
+ },
463
+ {
464
+ "name": "getUTCMonth",
465
+ "signature": "() => number",
466
+ "parameters": [],
467
+ "returns": "number",
468
+ "tags": [],
469
+ "docs": "Gets the month of a Date object using Universal Coordinated Time (UTC).",
470
+ "complexTypes": [],
471
+ "slug": "getutcmonth"
472
+ },
473
+ {
474
+ "name": "getDate",
475
+ "signature": "() => number",
476
+ "parameters": [],
477
+ "returns": "number",
478
+ "tags": [],
479
+ "docs": "Gets the day-of-the-month, using local time.",
480
+ "complexTypes": [],
481
+ "slug": "getdate"
482
+ },
483
+ {
484
+ "name": "getUTCDate",
485
+ "signature": "() => number",
486
+ "parameters": [],
487
+ "returns": "number",
488
+ "tags": [],
489
+ "docs": "Gets the day-of-the-month, using Universal Coordinated Time (UTC).",
490
+ "complexTypes": [],
491
+ "slug": "getutcdate"
492
+ },
493
+ {
494
+ "name": "getDay",
495
+ "signature": "() => number",
496
+ "parameters": [],
497
+ "returns": "number",
498
+ "tags": [],
499
+ "docs": "Gets the day of the week, using local time.",
500
+ "complexTypes": [],
501
+ "slug": "getday"
502
+ },
503
+ {
504
+ "name": "getUTCDay",
505
+ "signature": "() => number",
506
+ "parameters": [],
507
+ "returns": "number",
508
+ "tags": [],
509
+ "docs": "Gets the day of the week using Universal Coordinated Time (UTC).",
510
+ "complexTypes": [],
511
+ "slug": "getutcday"
512
+ },
513
+ {
514
+ "name": "getHours",
515
+ "signature": "() => number",
516
+ "parameters": [],
517
+ "returns": "number",
518
+ "tags": [],
519
+ "docs": "Gets the hours in a date, using local time.",
520
+ "complexTypes": [],
521
+ "slug": "gethours"
522
+ },
523
+ {
524
+ "name": "getUTCHours",
525
+ "signature": "() => number",
526
+ "parameters": [],
527
+ "returns": "number",
528
+ "tags": [],
529
+ "docs": "Gets the hours value in a Date object using Universal Coordinated Time (UTC).",
530
+ "complexTypes": [],
531
+ "slug": "getutchours"
532
+ },
533
+ {
534
+ "name": "getMinutes",
535
+ "signature": "() => number",
536
+ "parameters": [],
537
+ "returns": "number",
538
+ "tags": [],
539
+ "docs": "Gets the minutes of a Date object, using local time.",
540
+ "complexTypes": [],
541
+ "slug": "getminutes"
542
+ },
543
+ {
544
+ "name": "getUTCMinutes",
545
+ "signature": "() => number",
546
+ "parameters": [],
547
+ "returns": "number",
548
+ "tags": [],
549
+ "docs": "Gets the minutes of a Date object using Universal Coordinated Time (UTC).",
550
+ "complexTypes": [],
551
+ "slug": "getutcminutes"
552
+ },
553
+ {
554
+ "name": "getSeconds",
555
+ "signature": "() => number",
556
+ "parameters": [],
557
+ "returns": "number",
558
+ "tags": [],
559
+ "docs": "Gets the seconds of a Date object, using local time.",
560
+ "complexTypes": [],
561
+ "slug": "getseconds"
562
+ },
563
+ {
564
+ "name": "getUTCSeconds",
565
+ "signature": "() => number",
566
+ "parameters": [],
567
+ "returns": "number",
568
+ "tags": [],
569
+ "docs": "Gets the seconds of a Date object using Universal Coordinated Time (UTC).",
570
+ "complexTypes": [],
571
+ "slug": "getutcseconds"
572
+ },
573
+ {
574
+ "name": "getMilliseconds",
575
+ "signature": "() => number",
576
+ "parameters": [],
577
+ "returns": "number",
578
+ "tags": [],
579
+ "docs": "Gets the milliseconds of a Date, using local time.",
580
+ "complexTypes": [],
581
+ "slug": "getmilliseconds"
582
+ },
583
+ {
584
+ "name": "getUTCMilliseconds",
585
+ "signature": "() => number",
586
+ "parameters": [],
587
+ "returns": "number",
588
+ "tags": [],
589
+ "docs": "Gets the milliseconds of a Date object using Universal Coordinated Time (UTC).",
590
+ "complexTypes": [],
591
+ "slug": "getutcmilliseconds"
592
+ },
593
+ {
594
+ "name": "getTimezoneOffset",
595
+ "signature": "() => number",
596
+ "parameters": [],
597
+ "returns": "number",
598
+ "tags": [],
599
+ "docs": "Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC).",
600
+ "complexTypes": [],
601
+ "slug": "gettimezoneoffset"
602
+ },
603
+ {
604
+ "name": "setTime",
605
+ "signature": "(time: number) => number",
606
+ "parameters": [
607
+ {
608
+ "name": "time",
609
+ "docs": "A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.",
610
+ "type": "number"
611
+ }
612
+ ],
613
+ "returns": "number",
614
+ "tags": [
615
+ {
616
+ "name": "param",
617
+ "text": "time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT."
618
+ }
619
+ ],
620
+ "docs": "Sets the date and time value in the Date object.",
621
+ "complexTypes": [],
622
+ "slug": "settime"
623
+ },
624
+ {
625
+ "name": "setMilliseconds",
626
+ "signature": "(ms: number) => number",
627
+ "parameters": [
628
+ {
629
+ "name": "ms",
630
+ "docs": "A numeric value equal to the millisecond value.",
631
+ "type": "number"
632
+ }
633
+ ],
634
+ "returns": "number",
635
+ "tags": [
636
+ {
637
+ "name": "param",
638
+ "text": "ms A numeric value equal to the millisecond value."
639
+ }
640
+ ],
641
+ "docs": "Sets the milliseconds value in the Date object using local time.",
642
+ "complexTypes": [],
643
+ "slug": "setmilliseconds"
644
+ },
645
+ {
646
+ "name": "setUTCMilliseconds",
647
+ "signature": "(ms: number) => number",
648
+ "parameters": [
649
+ {
650
+ "name": "ms",
651
+ "docs": "A numeric value equal to the millisecond value.",
652
+ "type": "number"
653
+ }
654
+ ],
655
+ "returns": "number",
656
+ "tags": [
657
+ {
658
+ "name": "param",
659
+ "text": "ms A numeric value equal to the millisecond value."
660
+ }
661
+ ],
662
+ "docs": "Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).",
663
+ "complexTypes": [],
664
+ "slug": "setutcmilliseconds"
665
+ },
666
+ {
667
+ "name": "setSeconds",
668
+ "signature": "(sec: number, ms?: number | undefined) => number",
669
+ "parameters": [
670
+ {
671
+ "name": "sec",
672
+ "docs": "A numeric value equal to the seconds value.",
673
+ "type": "number"
674
+ },
675
+ {
676
+ "name": "ms",
677
+ "docs": "A numeric value equal to the milliseconds value.",
678
+ "type": "number | undefined"
679
+ }
680
+ ],
681
+ "returns": "number",
682
+ "tags": [
683
+ {
684
+ "name": "param",
685
+ "text": "sec A numeric value equal to the seconds value."
686
+ },
687
+ {
688
+ "name": "param",
689
+ "text": "ms A numeric value equal to the milliseconds value."
690
+ }
691
+ ],
692
+ "docs": "Sets the seconds value in the Date object using local time.",
693
+ "complexTypes": [],
694
+ "slug": "setseconds"
695
+ },
696
+ {
697
+ "name": "setUTCSeconds",
698
+ "signature": "(sec: number, ms?: number | undefined) => number",
699
+ "parameters": [
700
+ {
701
+ "name": "sec",
702
+ "docs": "A numeric value equal to the seconds value.",
703
+ "type": "number"
704
+ },
705
+ {
706
+ "name": "ms",
707
+ "docs": "A numeric value equal to the milliseconds value.",
708
+ "type": "number | undefined"
709
+ }
710
+ ],
711
+ "returns": "number",
712
+ "tags": [
713
+ {
714
+ "name": "param",
715
+ "text": "sec A numeric value equal to the seconds value."
716
+ },
717
+ {
718
+ "name": "param",
719
+ "text": "ms A numeric value equal to the milliseconds value."
720
+ }
721
+ ],
722
+ "docs": "Sets the seconds value in the Date object using Universal Coordinated Time (UTC).",
723
+ "complexTypes": [],
724
+ "slug": "setutcseconds"
725
+ },
726
+ {
727
+ "name": "setMinutes",
728
+ "signature": "(min: number, sec?: number | undefined, ms?: number | undefined) => number",
729
+ "parameters": [
730
+ {
731
+ "name": "min",
732
+ "docs": "A numeric value equal to the minutes value.",
733
+ "type": "number"
734
+ },
735
+ {
736
+ "name": "sec",
737
+ "docs": "A numeric value equal to the seconds value.",
738
+ "type": "number | undefined"
739
+ },
740
+ {
741
+ "name": "ms",
742
+ "docs": "A numeric value equal to the milliseconds value.",
743
+ "type": "number | undefined"
744
+ }
745
+ ],
746
+ "returns": "number",
747
+ "tags": [
748
+ {
749
+ "name": "param",
750
+ "text": "min A numeric value equal to the minutes value."
751
+ },
752
+ {
753
+ "name": "param",
754
+ "text": "sec A numeric value equal to the seconds value."
755
+ },
756
+ {
757
+ "name": "param",
758
+ "text": "ms A numeric value equal to the milliseconds value."
759
+ }
760
+ ],
761
+ "docs": "Sets the minutes value in the Date object using local time.",
762
+ "complexTypes": [],
763
+ "slug": "setminutes"
764
+ },
765
+ {
766
+ "name": "setUTCMinutes",
767
+ "signature": "(min: number, sec?: number | undefined, ms?: number | undefined) => number",
768
+ "parameters": [
769
+ {
770
+ "name": "min",
771
+ "docs": "A numeric value equal to the minutes value.",
772
+ "type": "number"
773
+ },
774
+ {
775
+ "name": "sec",
776
+ "docs": "A numeric value equal to the seconds value.",
777
+ "type": "number | undefined"
778
+ },
779
+ {
780
+ "name": "ms",
781
+ "docs": "A numeric value equal to the milliseconds value.",
782
+ "type": "number | undefined"
783
+ }
784
+ ],
785
+ "returns": "number",
786
+ "tags": [
787
+ {
788
+ "name": "param",
789
+ "text": "min A numeric value equal to the minutes value."
790
+ },
791
+ {
792
+ "name": "param",
793
+ "text": "sec A numeric value equal to the seconds value."
794
+ },
795
+ {
796
+ "name": "param",
797
+ "text": "ms A numeric value equal to the milliseconds value."
798
+ }
799
+ ],
800
+ "docs": "Sets the minutes value in the Date object using Universal Coordinated Time (UTC).",
801
+ "complexTypes": [],
802
+ "slug": "setutcminutes"
803
+ },
804
+ {
805
+ "name": "setHours",
806
+ "signature": "(hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number",
807
+ "parameters": [
808
+ {
809
+ "name": "hours",
810
+ "docs": "A numeric value equal to the hours value.",
811
+ "type": "number"
812
+ },
813
+ {
814
+ "name": "min",
815
+ "docs": "A numeric value equal to the minutes value.",
816
+ "type": "number | undefined"
817
+ },
818
+ {
819
+ "name": "sec",
820
+ "docs": "A numeric value equal to the seconds value.",
821
+ "type": "number | undefined"
822
+ },
823
+ {
824
+ "name": "ms",
825
+ "docs": "A numeric value equal to the milliseconds value.",
826
+ "type": "number | undefined"
827
+ }
828
+ ],
829
+ "returns": "number",
830
+ "tags": [
831
+ {
832
+ "name": "param",
833
+ "text": "hours A numeric value equal to the hours value."
834
+ },
835
+ {
836
+ "name": "param",
837
+ "text": "min A numeric value equal to the minutes value."
838
+ },
839
+ {
840
+ "name": "param",
841
+ "text": "sec A numeric value equal to the seconds value."
842
+ },
843
+ {
844
+ "name": "param",
845
+ "text": "ms A numeric value equal to the milliseconds value."
846
+ }
847
+ ],
848
+ "docs": "Sets the hour value in the Date object using local time.",
849
+ "complexTypes": [],
850
+ "slug": "sethours"
851
+ },
852
+ {
853
+ "name": "setUTCHours",
854
+ "signature": "(hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number",
855
+ "parameters": [
856
+ {
857
+ "name": "hours",
858
+ "docs": "A numeric value equal to the hours value.",
859
+ "type": "number"
860
+ },
861
+ {
862
+ "name": "min",
863
+ "docs": "A numeric value equal to the minutes value.",
864
+ "type": "number | undefined"
865
+ },
866
+ {
867
+ "name": "sec",
868
+ "docs": "A numeric value equal to the seconds value.",
869
+ "type": "number | undefined"
870
+ },
871
+ {
872
+ "name": "ms",
873
+ "docs": "A numeric value equal to the milliseconds value.",
874
+ "type": "number | undefined"
875
+ }
876
+ ],
877
+ "returns": "number",
878
+ "tags": [
879
+ {
880
+ "name": "param",
881
+ "text": "hours A numeric value equal to the hours value."
882
+ },
883
+ {
884
+ "name": "param",
885
+ "text": "min A numeric value equal to the minutes value."
886
+ },
887
+ {
888
+ "name": "param",
889
+ "text": "sec A numeric value equal to the seconds value."
890
+ },
891
+ {
892
+ "name": "param",
893
+ "text": "ms A numeric value equal to the milliseconds value."
894
+ }
895
+ ],
896
+ "docs": "Sets the hours value in the Date object using Universal Coordinated Time (UTC).",
897
+ "complexTypes": [],
898
+ "slug": "setutchours"
899
+ },
900
+ {
901
+ "name": "setDate",
902
+ "signature": "(date: number) => number",
903
+ "parameters": [
904
+ {
905
+ "name": "date",
906
+ "docs": "A numeric value equal to the day of the month.",
907
+ "type": "number"
908
+ }
909
+ ],
910
+ "returns": "number",
911
+ "tags": [
912
+ {
913
+ "name": "param",
914
+ "text": "date A numeric value equal to the day of the month."
915
+ }
916
+ ],
917
+ "docs": "Sets the numeric day-of-the-month value of the Date object using local time.",
918
+ "complexTypes": [],
919
+ "slug": "setdate"
920
+ },
921
+ {
922
+ "name": "setUTCDate",
923
+ "signature": "(date: number) => number",
924
+ "parameters": [
925
+ {
926
+ "name": "date",
927
+ "docs": "A numeric value equal to the day of the month.",
928
+ "type": "number"
929
+ }
930
+ ],
931
+ "returns": "number",
932
+ "tags": [
933
+ {
934
+ "name": "param",
935
+ "text": "date A numeric value equal to the day of the month."
936
+ }
937
+ ],
938
+ "docs": "Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).",
939
+ "complexTypes": [],
940
+ "slug": "setutcdate"
941
+ },
942
+ {
943
+ "name": "setMonth",
944
+ "signature": "(month: number, date?: number | undefined) => number",
945
+ "parameters": [
946
+ {
947
+ "name": "month",
948
+ "docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.",
949
+ "type": "number"
950
+ },
951
+ {
952
+ "name": "date",
953
+ "docs": "A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.",
954
+ "type": "number | undefined"
955
+ }
956
+ ],
957
+ "returns": "number",
958
+ "tags": [
959
+ {
960
+ "name": "param",
961
+ "text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively."
962
+ },
963
+ {
964
+ "name": "param",
965
+ "text": "date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used."
966
+ }
967
+ ],
968
+ "docs": "Sets the month value in the Date object using local time.",
969
+ "complexTypes": [],
970
+ "slug": "setmonth"
971
+ },
972
+ {
973
+ "name": "setUTCMonth",
974
+ "signature": "(month: number, date?: number | undefined) => number",
975
+ "parameters": [
976
+ {
977
+ "name": "month",
978
+ "docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.",
979
+ "type": "number"
980
+ },
981
+ {
982
+ "name": "date",
983
+ "docs": "A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.",
984
+ "type": "number | undefined"
985
+ }
986
+ ],
987
+ "returns": "number",
988
+ "tags": [
989
+ {
990
+ "name": "param",
991
+ "text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively."
992
+ },
993
+ {
994
+ "name": "param",
995
+ "text": "date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used."
996
+ }
997
+ ],
998
+ "docs": "Sets the month value in the Date object using Universal Coordinated Time (UTC).",
999
+ "complexTypes": [],
1000
+ "slug": "setutcmonth"
1001
+ },
1002
+ {
1003
+ "name": "setFullYear",
1004
+ "signature": "(year: number, month?: number | undefined, date?: number | undefined) => number",
1005
+ "parameters": [
1006
+ {
1007
+ "name": "year",
1008
+ "docs": "A numeric value for the year.",
1009
+ "type": "number"
1010
+ },
1011
+ {
1012
+ "name": "month",
1013
+ "docs": "A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.",
1014
+ "type": "number | undefined"
1015
+ },
1016
+ {
1017
+ "name": "date",
1018
+ "docs": "A numeric value equal for the day of the month.",
1019
+ "type": "number | undefined"
1020
+ }
1021
+ ],
1022
+ "returns": "number",
1023
+ "tags": [
1024
+ {
1025
+ "name": "param",
1026
+ "text": "year A numeric value for the year."
1027
+ },
1028
+ {
1029
+ "name": "param",
1030
+ "text": "month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified."
1031
+ },
1032
+ {
1033
+ "name": "param",
1034
+ "text": "date A numeric value equal for the day of the month."
1035
+ }
1036
+ ],
1037
+ "docs": "Sets the year of the Date object using local time.",
1038
+ "complexTypes": [],
1039
+ "slug": "setfullyear"
1040
+ },
1041
+ {
1042
+ "name": "setUTCFullYear",
1043
+ "signature": "(year: number, month?: number | undefined, date?: number | undefined) => number",
1044
+ "parameters": [
1045
+ {
1046
+ "name": "year",
1047
+ "docs": "A numeric value equal to the year.",
1048
+ "type": "number"
1049
+ },
1050
+ {
1051
+ "name": "month",
1052
+ "docs": "A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.",
1053
+ "type": "number | undefined"
1054
+ },
1055
+ {
1056
+ "name": "date",
1057
+ "docs": "A numeric value equal to the day of the month.",
1058
+ "type": "number | undefined"
1059
+ }
1060
+ ],
1061
+ "returns": "number",
1062
+ "tags": [
1063
+ {
1064
+ "name": "param",
1065
+ "text": "year A numeric value equal to the year."
1066
+ },
1067
+ {
1068
+ "name": "param",
1069
+ "text": "month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied."
1070
+ },
1071
+ {
1072
+ "name": "param",
1073
+ "text": "date A numeric value equal to the day of the month."
1074
+ }
1075
+ ],
1076
+ "docs": "Sets the year value in the Date object using Universal Coordinated Time (UTC).",
1077
+ "complexTypes": [],
1078
+ "slug": "setutcfullyear"
1079
+ },
1080
+ {
1081
+ "name": "toUTCString",
1082
+ "signature": "() => string",
1083
+ "parameters": [],
1084
+ "returns": "string",
1085
+ "tags": [],
1086
+ "docs": "Returns a date converted to a string using Universal Coordinated Time (UTC).",
1087
+ "complexTypes": [],
1088
+ "slug": "toutcstring"
1089
+ },
1090
+ {
1091
+ "name": "toISOString",
1092
+ "signature": "() => string",
1093
+ "parameters": [],
1094
+ "returns": "string",
1095
+ "tags": [],
1096
+ "docs": "Returns a date as a string value in ISO format.",
1097
+ "complexTypes": [],
1098
+ "slug": "toisostring"
1099
+ },
1100
+ {
1101
+ "name": "toJSON",
1102
+ "signature": "(key?: any) => string",
1103
+ "parameters": [
1104
+ {
1105
+ "name": "key",
1106
+ "docs": "",
1107
+ "type": "any"
1108
+ }
1109
+ ],
1110
+ "returns": "string",
1111
+ "tags": [],
1112
+ "docs": "Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization.",
1113
+ "complexTypes": [],
1114
+ "slug": "tojson"
1115
+ }
1116
+ ],
1117
+ "properties": []
314
1118
  }
315
1119
  ],
316
1120
  "enums": [