Skip to content

Commit

Permalink
Clean up default values
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed Nov 13, 2023
1 parent 9aea123 commit 94640b5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactgenie-lib",
"version": "1.1.44",
"version": "1.1.45",
"description": "A Toolkit for Multimodal Applications",
"author": "valkjsaaa",
"license": "Apache-2.0",
Expand Down Expand Up @@ -44,7 +44,7 @@
"react-native-elements": "^3.4.3",
"react-native-root-toast": "^3.5.1",
"react-speech-recognition": "^3.9.1",
"reactgenie-dsl": "^0.0.40",
"reactgenie-dsl": "^0.0.41",
"reflect-metadata": "^0.1.13",
"web-speech-cognitive-services": "7.1.3",
"microsoft-cognitiveservices-speech-sdk": "1.32.0",
Expand Down
28 changes: 14 additions & 14 deletions src/genie/DateTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ export class DateTime extends HelperClass {

@GenieFunction("Create a new date time object")
static CreateDatetime({
year = undefined,
month = undefined,
day = undefined,
hour = undefined,
minute = undefined,
second = undefined,
year,
month,
day,
hour,
minute,
second,
}: {
year?: int;
month?: int;
Expand Down Expand Up @@ -166,13 +166,13 @@ export class DateTime extends HelperClass {

@GenieFunction("Set the date of the date time object")
setDate({
year = undefined,
month = undefined,
day = undefined,
hour = undefined,
minute = undefined,
second = undefined,
day_of_the_week = undefined,
year,
month,
day,
hour,
minute,
second,
day_of_the_week,
}: {
year?: int;
month?: int;
Expand All @@ -193,7 +193,7 @@ export class DateTime extends HelperClass {
}
if (day_of_the_week !== undefined) {
this._date.setDate(
this._date.getDate() + (day_of_the_week - this._date.getDay())
this._date.getDate() + (day_of_the_week - this._date.getDay()),
);
}
if (hour !== undefined) {
Expand Down

0 comments on commit 94640b5

Please sign in to comment.