Skip to content

Commit 94640b5

Browse files
committed
Clean up default values
1 parent 9aea123 commit 94640b5

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactgenie-lib",
3-
"version": "1.1.44",
3+
"version": "1.1.45",
44
"description": "A Toolkit for Multimodal Applications",
55
"author": "valkjsaaa",
66
"license": "Apache-2.0",
@@ -44,7 +44,7 @@
4444
"react-native-elements": "^3.4.3",
4545
"react-native-root-toast": "^3.5.1",
4646
"react-speech-recognition": "^3.9.1",
47-
"reactgenie-dsl": "^0.0.40",
47+
"reactgenie-dsl": "^0.0.41",
4848
"reflect-metadata": "^0.1.13",
4949
"web-speech-cognitive-services": "7.1.3",
5050
"microsoft-cognitiveservices-speech-sdk": "1.32.0",

src/genie/DateTime.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ export class DateTime extends HelperClass {
121121

122122
@GenieFunction("Create a new date time object")
123123
static CreateDatetime({
124-
year = undefined,
125-
month = undefined,
126-
day = undefined,
127-
hour = undefined,
128-
minute = undefined,
129-
second = undefined,
124+
year,
125+
month,
126+
day,
127+
hour,
128+
minute,
129+
second,
130130
}: {
131131
year?: int;
132132
month?: int;
@@ -166,13 +166,13 @@ export class DateTime extends HelperClass {
166166

167167
@GenieFunction("Set the date of the date time object")
168168
setDate({
169-
year = undefined,
170-
month = undefined,
171-
day = undefined,
172-
hour = undefined,
173-
minute = undefined,
174-
second = undefined,
175-
day_of_the_week = undefined,
169+
year,
170+
month,
171+
day,
172+
hour,
173+
minute,
174+
second,
175+
day_of_the_week,
176176
}: {
177177
year?: int;
178178
month?: int;
@@ -193,7 +193,7 @@ export class DateTime extends HelperClass {
193193
}
194194
if (day_of_the_week !== undefined) {
195195
this._date.setDate(
196-
this._date.getDate() + (day_of_the_week - this._date.getDay())
196+
this._date.getDate() + (day_of_the_week - this._date.getDay()),
197197
);
198198
}
199199
if (hour !== undefined) {

0 commit comments

Comments
 (0)