@@ -1326,7 +1326,6 @@ declare interface WhoAmIResult {
13261326 */
13271327declare function whoami ( ) : WhoAmIResult ;
13281328
1329-
13301329/**
13311330 * Runs a child process and blocks until it exits. You can call it with either a
13321331 * string or an array of strings.
@@ -4457,7 +4456,6 @@ declare var process: {
44574456 exit ( code ?: number | null | undefined ) : void ;
44584457} ;
44594458
4460-
44614459// ==========================================
44624460// ------------------------------------------
44634461// QuickJS APIs, which YavaScript builds upon
@@ -4475,7 +4473,7 @@ interface ObjectConstructor {
44754473 */
44764474 toPrimitive (
44774475 input : any ,
4478- hint : "string" | "number" | "default"
4476+ hint : "string" | "number" | "default" ,
44794477 ) : string | number | bigint | boolean | undefined | symbol | null ;
44804478
44814479 /**
@@ -4574,8 +4572,9 @@ interface LeftOperators<T, Left> extends Partial<OperatorFunctions<Left, T>> {
45744572 right ?: undefined ;
45754573}
45764574
4577- interface RightOperators < T , Right >
4578- extends Partial < OperatorFunctions < T , Right > > {
4575+ interface RightOperators < T , Right > extends Partial <
4576+ OperatorFunctions < T , Right >
4577+ > {
45794578 left ?: undefined ;
45804579 right : { } ;
45814580}
@@ -4604,7 +4603,7 @@ interface OperatorsConstructor {
46044603 * using this function.
46054604 */
46064605 updateBigIntOperators (
4607- ops : Pick < OperatorFunctions < BigInt , BigInt > , "/" | "**" >
4606+ ops : Pick < OperatorFunctions < BigInt , BigInt > , "/" | "**" > ,
46084607 ) : void ;
46094608}
46104609
@@ -5157,7 +5156,7 @@ interface BigFloat {
51575156 toPrecision (
51585157 precision : number ,
51595158 roundingMode ?: BigFloatRoundingMode ,
5160- radix ?: number
5159+ radix ?: number ,
51615160 ) : string ;
51625161
51635162 /**
@@ -5170,7 +5169,7 @@ interface BigFloat {
51705169 toFixed (
51715170 fractionDigits : number ,
51725171 roundingMode ?: BigFloatRoundingMode ,
5173- radix ?: number
5172+ radix ?: number ,
51745173 ) : string ;
51755174
51765175 /**
@@ -5183,7 +5182,7 @@ interface BigFloat {
51835182 toExponential (
51845183 fractionDigits : number ,
51855184 roundingMode ?: BigFloatRoundingMode ,
5186- radix ?: number
5185+ radix ?: number ,
51875186 ) : string ;
51885187
51895188 [ Symbol . typeofValue ] : ( ) => "bigfloat" ;
@@ -5315,7 +5314,7 @@ interface BigDecimal {
53155314 */
53165315 toFixed (
53175316 fractionDigits : number ,
5318- roundingMode ?: BigDecimalRoundingMode
5317+ roundingMode ?: BigDecimalRoundingMode ,
53195318 ) : string ;
53205319
53215320 /**
@@ -5326,7 +5325,7 @@ interface BigDecimal {
53265325 */
53275326 toExponential (
53285327 fractionDigits : number ,
5329- roundingMode ?: BigDecimalRoundingMode
5328+ roundingMode ?: BigDecimalRoundingMode ,
53305329 ) : string ;
53315330}
53325331
@@ -5862,7 +5861,10 @@ declare module "quickjs:std" {
58625861 * - `responseHeaders`: headers separated by CRLF (string)
58635862 * - `status`: status code (number)
58645863 */
5865- ( url : string , options : { full : true } ) : {
5864+ (
5865+ url : string ,
5866+ options : { full : true } ,
5867+ ) : {
58665868 status : number ;
58675869 response : string ;
58685870 responseHeaders : string ;
@@ -5877,7 +5879,10 @@ declare module "quickjs:std" {
58775879 * - `responseHeaders`: headers separated by CRLF (string)
58785880 * - `status`: status code (number)
58795881 */
5880- ( url : string , options : { full : true ; binary : false } ) : {
5882+ (
5883+ url : string ,
5884+ options : { full : true ; binary : false } ,
5885+ ) : {
58815886 status : number ;
58825887 response : string ;
58835888 responseHeaders : string ;
@@ -5892,7 +5897,10 @@ declare module "quickjs:std" {
58925897 * - `responseHeaders`: headers separated by CRLF (string)
58935898 * - `status`: status code (number)
58945899 */
5895- ( url : string , options : { full : true ; binary : true } ) : {
5900+ (
5901+ url : string ,
5902+ options : { full : true ; binary : true } ,
5903+ ) : {
58965904 status : number ;
58975905 response : ArrayBuffer ;
58985906 responseHeaders : string ;
@@ -5925,7 +5933,7 @@ declare module "quickjs:std" {
59255933 export function strftime (
59265934 maxBytes : number ,
59275935 format : string ,
5928- time : Date | number
5936+ time : Date | number ,
59295937 ) : string ;
59305938}
59315939
@@ -5993,15 +6001,15 @@ declare module "quickjs:os" {
59936001 fd : number ,
59946002 buffer : ArrayBuffer ,
59956003 offset : number ,
5996- length : number
6004+ length : number ,
59976005 ) : number ;
59986006
59996007 /** Write `length` bytes to the file with descriptor `fd` from the ArrayBuffer `buffer` at byte position `offset`. Return the number of written bytes. */
60006008 export function write (
60016009 fd : number ,
60026010 buffer : ArrayBuffer ,
60036011 offset : number ,
6004- length : number
6012+ length : number ,
60056013 ) : number ;
60066014
60076015 /** Return `true` if the file opened with descriptor `fd` is a TTY (terminal). */
@@ -6273,7 +6281,7 @@ declare module "quickjs:os" {
62736281 /** Call the function `func` when the signal `signal` happens. Only a single handler per signal number is supported. Use `null` to set the default handler or `undefined` to ignore the signal. Signal handlers can only be defined in the main thread. */
62746282 export function signal (
62756283 signal : number ,
6276- func : null | undefined | ( ( ) => void )
6284+ func : null | undefined | ( ( ) => void ) ,
62776285 ) : void ;
62786286
62796287 /** POSIX signal number. */
@@ -6412,7 +6420,7 @@ declare module "quickjs:os" {
64126420 /** Call the function func after delay ms. Return a handle to the timer. */
64136421 export function setTimeout (
64146422 func : ( ...args : any ) => any ,
6415- delay : number
6423+ delay : number ,
64166424 ) : OSTimer ;
64176425
64186426 /** Cancel a timer. */
@@ -6723,7 +6731,7 @@ declare module "quickjs:engine" {
67236731 */
67246732 export function evalScript (
67256733 code : string ,
6726- options ?: { backtraceBarrier ?: boolean ; filename ?: string }
6734+ options ?: { backtraceBarrier ?: boolean ; filename ?: string } ,
67276735 ) : any ;
67286736
67296737 /**
@@ -6743,7 +6751,7 @@ declare module "quickjs:engine" {
67436751 */
67446752 export function importModule (
67456753 filename : string ,
6746- basename ?: string
6754+ basename ?: string ,
67476755 ) : { [ key : string ] : any } ;
67486756
67496757 /**
@@ -6775,7 +6783,7 @@ declare module "quickjs:engine" {
67756783 */
67766784 export function defineBuiltinModule (
67776785 name : string ,
6778- obj : { [ key : string ] : any }
6786+ obj : { [ key : string ] : any } ,
67796787 ) : void ;
67806788
67816789 /**
@@ -6805,15 +6813,15 @@ declare module "quickjs:bytecode" {
68056813 byteSwap ?: boolean ;
68066814 sourceType ?: "module" | "script" ;
68076815 encodedFileName ?: string ;
6808- }
6816+ } ,
68096817 ) : ArrayBuffer ;
68106818
68116819 /**
68126820 * Convert the provided value into bytecode. Doesn't work with all values.
68136821 */
68146822 export function fromValue (
68156823 value : any ,
6816- options ?: { byteSwap ?: boolean }
6824+ options ?: { byteSwap ?: boolean } ,
68176825 ) : ArrayBuffer ;
68186826
68196827 /**
@@ -7006,11 +7014,9 @@ declare module "quickjs:encoding" {
70067014 export function fromUtf8 ( input : string ) : ArrayBuffer ;
70077015}
70087016
7009-
70107017declare const std : typeof import ( "quickjs:std" ) ;
70117018declare const os : typeof import ( "quickjs:os" ) ;
70127019
70137020// undocumented from quickjs, but it's there
70147021/** Get the current unix timestamp with microsecond precision. */
70157022declare function __date_clock ( ) : number ;
7016-
0 commit comments