You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New to AS so it's likely me doing something wrong.
When I try to export a function using process.time() I receive a compile error:
import { process } from 'process';
export function start(): void {
const time: i64 = process.time();
}
ERROR AS200: Conversion from type 'f64' to 'i64' requires an explicit cast.
:
32 │ return Date_binding.now();
│ ~~~~~~~~~~~~~~~~~~
└─ in ~lib/process.ts(32,12)
The text was updated successfully, but these errors were encountered:
Side note: I am not quite sure why process.time exists in the first place, though, given that Node doesn't have it and there is Date.now doing the same. Probably better to use Date.now instead.
Question
New to AS so it's likely me doing something wrong.
When I try to export a function using
process.time()
I receive a compile error:The text was updated successfully, but these errors were encountered: