Improve date binding compatibility

This commit is contained in:
dcodeIO
2018-11-11 10:43:17 +01:00
parent 1fad3d26c7
commit 9ab7384122
6 changed files with 31 additions and 23 deletions

View File

@ -1,10 +1,12 @@
export declare function UTC(
// NOTE: Using i32 below saves us a f64.convert_s instruction and moves the responsibility for
// converting the value to the WASM/JS boundary.
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
second: i32,
millisecond: i32
millisecond: f64
): f64;
export declare function now(): f64;