Files
bun.sh/test/snippets/code-simplification-neql-define.js
Colin McDonnell f7f1b60444 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 <colinmcd@alum.mit.edu>
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-09 15:40:40 -08:00

57 lines
1.5 KiB
JavaScript

var testFailed = false;
const invariant = () => {
testFailed = true;
};
var $$m = (arg) => {
var module = { exports: {} },
exports = module.exports;
return arg(module, exports);
};
var size = 100,
ttl = 3600;
export var $f332019d = $$m(
{
"relay-runtime/lib/network/RelayQueryResponseCache.js": (
module,
exports,
) => {
var RelayQueryResponseCache = function () {
var foo = function RelayQueryResponseCache(_ref) {
var size = _ref.size,
ttl = _ref.ttl;
!(size > 0)
? process.env.NODE_ENV !== "production"
? invariant(
false,
"RelayQueryResponseCache: Expected the max cache size to be > 0, got " +
"`%s`.",
size,
)
: invariant(false)
: void 0;
!(ttl > 0)
? process.env.NODE_ENV !== "production"
? invariant(
false,
"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",
ttl,
)
: invariant(false)
: void 0;
};
foo({ size: 100, ttl: 3600 });
};
RelayQueryResponseCache();
},
}["relay-runtime/lib/network/RelayQueryResponseCache.js"],
);
export function test() {
var foo = () => result;
// $f332019d;
if (testFailed) throw new Error("invariant should not be called");
return testDone(import.meta.url);
}