From f7f1b604443c030afe29d1059b90f72c69afe081 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 9 Nov 2022 15:40:40 -0800 Subject: Add bun-types, add typechecking, add `child_process` types (#1475) * Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell Co-authored-by: Dylan Conway --- src/bun.js/scripts/generate-jssink.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/bun.js/scripts/generate-jssink.js') diff --git a/src/bun.js/scripts/generate-jssink.js b/src/bun.js/scripts/generate-jssink.js index 65fc864fb..0e9d3bb50 100644 --- a/src/bun.js/scripts/generate-jssink.js +++ b/src/bun.js/scripts/generate-jssink.js @@ -481,19 +481,19 @@ JSC_DEFINE_HOST_FUNCTION(${name}__doClose, (JSC::JSGlobalObject * lexicalGlobalO /* Source for JS${name}PrototypeTableValues.lut.h @begin JS${name}PrototypeTable close ${`${name}__doClose`.padEnd( - padding + 8 + padding + 8, )} ReadOnly|DontDelete|Function 0 flush ${`${name}__flush`.padEnd( - padding + 8 + padding + 8, )} ReadOnly|DontDelete|Function 1 end ${`${name}__end`.padEnd( - padding + 8 + padding + 8, )} ReadOnly|DontDelete|Function 0 start ${`${name}__start`.padEnd( - padding + 8 + padding + 8, )} ReadOnly|DontDelete|Function 1 write ${`${name}__write`.padEnd( - padding + 8 + padding + 8, )} ReadOnly|DontDelete|Function 1 @end */ @@ -502,19 +502,19 @@ JSC_DEFINE_HOST_FUNCTION(${name}__doClose, (JSC::JSGlobalObject * lexicalGlobalO /* Source for ${controllerPrototypeName}TableValues.lut.h @begin ${controllerPrototypeName}Table close ${`${controller}__close`.padEnd( - protopad + 4 + protopad + 4, )} ReadOnly|DontDelete|Function 0 flush ${`${name}__flush`.padEnd( - protopad + 4 + protopad + 4, )} ReadOnly|DontDelete|Function 1 end ${`${controller}__end`.padEnd( - protopad + 4 + protopad + 4, )} ReadOnly|DontDelete|Function 0 start ${`${name}__start`.padEnd( - protopad + 4 + protopad + 4, )} ReadOnly|DontDelete|Function 1 write ${`${name}__write`.padEnd( - protopad + 4 + protopad + 4, )} ReadOnly|DontDelete|Function 1 @end */ @@ -950,5 +950,5 @@ extern "C" void ${name}__onClose(JSC__JSValue controllerValue, JSC__JSValue reas await Bun.write(resolve(import.meta.dir + "/../bindings/JSSink.h"), header()); await Bun.write( resolve(import.meta.dir + "/../bindings/JSSink.cpp"), - await implementation() + await implementation(), ); -- cgit v1.2.3