Skip to content

Commit

Permalink
Fix number typing (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSinn authored Mar 10, 2023
1 parent 2951dba commit 3f0d889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ export class SDKVariable extends JSON.Obj {
const boolValue = (this.type === 'Boolean' && this.value.isBool)
? (this.value as JSON.Bool).valueOf()
: false
const numValue = (this.type === 'Number' && this.value.isNum)
? (this.value as JSON.Num).valueOf()
: 0
const numValue = (this.type === 'Number' && this.value.isInteger)
? f64((this.value as JSON.Integer).valueOf())
: (this.type === 'Number' && this.value.isFloat) ? (this.value as JSON.Float).valueOf() : 0.0
const stringValue = (this.type === 'String' && this.value.isString)
? (this.value as JSON.Str).valueOf()
: null
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8309,7 +8309,7 @@ __metadata:
"assemblyscript-json@https://github.com/DevCycleHQ/assemblyscript-json":
version: 1.1.0
resolution: "assemblyscript-json@https://github.com/DevCycleHQ/assemblyscript-json.git#commit=d2ce65ec18b305e1f3db8a4fe4394b417631b024"
checksum: 480283ed02d57eacb400facc060f293b7dcb773a90dc5b7c80eae86b0007e3a748b2cb6c298a1a32010cba41e48686fcd0078c02c6db1d917fda85bb7c08ded1
checksum: 3f3ded0c316d3f7a9ca599e571d2d75185fed73fe64f73b9324cf162604532950bc11f30fc57d7caa5b3039d4251dc9162d4823bcb50d62befbf34b28bc1136d
languageName: node
linkType: hard

Expand Down

4 comments on commit 3f0d889

@vercel
Copy link

@vercel vercel bot commented on 3f0d889 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3f0d889 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3f0d889 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3f0d889 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

js-sdks-next-js – ./

js-sdks-next-js-devcyclehq.vercel.app
dvc-nextjs.vercel.app
js-sdks-next-js-git-main-devcyclehq.vercel.app

Please sign in to comment.