@fncts/express 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/ExitHandler.cjs +0 -8
- package/_cjs/ExitHandler.cjs.map +1 -1
- package/_cjs/ExpressApp.cjs +1 -23
- package/_cjs/ExpressApp.cjs.map +1 -1
- package/_cjs/ExpressAppConfig.cjs +0 -7
- package/_cjs/ExpressAppConfig.cjs.map +1 -1
- package/_cjs/errors.cjs +0 -6
- package/_cjs/errors.cjs.map +1 -1
- package/_cjs/index.cjs +0 -19
- package/_cjs/index.cjs.map +1 -1
- package/_mjs/ExitHandler.mjs +0 -1
- package/_mjs/ExitHandler.mjs.map +1 -1
- package/_mjs/ExpressApp.mjs +1 -3
- package/_mjs/ExpressApp.mjs.map +1 -1
- package/_mjs/ExpressAppConfig.mjs.map +1 -1
- package/_mjs/errors.mjs +0 -2
- package/_mjs/errors.mjs.map +1 -1
- package/_mjs/index.mjs.map +1 -1
- package/_src/ExpressApp.ts +1 -1
- package/index.d.ts +27 -27
- package/package.json +2 -2
package/_cjs/ExitHandler.cjs
CHANGED
@@ -4,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.defaultExitHandler = defaultExitHandler;
|
7
|
-
|
8
7
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api"));
|
9
|
-
|
10
8
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api/prettyPrint"));
|
11
|
-
|
12
9
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
13
|
-
|
14
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
15
|
-
|
16
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
|
-
|
18
12
|
const fileName_1 = "(@fncts/express) src/ExitHandler.ts";
|
19
|
-
|
20
13
|
function defaultExitHandler(_req, _res, _next) {
|
21
14
|
return cause => tsplus_module_3.succeed(() => {
|
22
15
|
if (tsplus_module_1.halted(cause)) {
|
23
16
|
console.error(tsplus_module_2.prettyPrint(cause));
|
24
17
|
}
|
25
|
-
|
26
18
|
_res.status(500).end();
|
27
19
|
}, fileName_1 + ":13:15");
|
28
20
|
}
|
package/_cjs/ExitHandler.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExitHandler.cjs","mappings":"
|
1
|
+
{"version":3,"file":"ExitHandler.cjs","mappings":";;;;;;;;;;;;AAMM,SAAUA,kBAAkB,CAChCC,IAAa,EACbC,IAAc,EACdC,KAAmB;EAEnB,OAAQC,KAAK,IACXC,wBAAW,MAAK;IACd,2BAAID,KAAK,GAAS;MAChBE,OAAO,CAACC,KAAK,6BAACH,KAAK,EAAa;;IAElCF,IAAI,CAACM,MAAM,CAAC,GAAG,CAAC,CAACC,GAAG,EAAE;EACxB,CAAC,wBAAC;AACN","names":["defaultExitHandler","_req","_res","_next","cause","tsplus_module_3","console","error","status","end"],"sourceRoot":"","sources":["../_src/ExitHandler.ts"],"sourcesContent":[null]}
|
package/_cjs/ExpressApp.cjs
CHANGED
@@ -8,49 +8,30 @@ exports.LiveExpress = LiveExpress;
|
|
8
8
|
exports.LiveExpressApp = void 0;
|
9
9
|
exports.expressRuntime = expressRuntime;
|
10
10
|
exports.makeExpressApp = void 0;
|
11
|
-
|
12
11
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Tag/constructors"));
|
13
|
-
|
14
12
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/interrupt"));
|
15
|
-
|
16
13
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/onTermination"));
|
17
|
-
|
18
14
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/runtime"));
|
19
|
-
|
20
15
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
21
|
-
|
22
16
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/acquireRelease"));
|
23
|
-
|
24
17
|
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
|
25
|
-
|
26
18
|
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Layer/api"));
|
27
|
-
|
28
19
|
var _AtomicBoolean = /*#__PURE__*/require("@fncts/base/internal/AtomicBoolean");
|
29
|
-
|
30
20
|
var _IO = /*#__PURE__*/require("@fncts/io/IO");
|
31
|
-
|
32
21
|
var _express = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("express"));
|
33
|
-
|
34
22
|
var _errors = /*#__PURE__*/require("./errors.cjs");
|
35
|
-
|
36
23
|
var _ExitHandler = /*#__PURE__*/require("./ExitHandler.cjs");
|
37
|
-
|
38
24
|
var _ExpressAppConfig = /*#__PURE__*/require("./ExpressAppConfig.cjs");
|
39
|
-
|
40
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
41
|
-
|
42
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
43
|
-
|
44
27
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
45
|
-
|
46
28
|
const fileName_1 = "(@fncts/express) src/ExpressApp.ts";
|
47
29
|
const ExpressAppTag = /*#__PURE__*/tsplus_module_1.makeTag("fncts.express.ExpressApp");
|
48
30
|
exports.ExpressAppTag = ExpressAppTag;
|
49
31
|
const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplus_module_5.flatMap(app => tsplus_module_5.flatMap(config => tsplus_module_5.map(server => {
|
50
32
|
function runtime(handlers) {
|
51
|
-
return tsplus_module_5.map(r => handlers.map(handler => (req, res, next) => r.unsafeRunAsync(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(() => open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31")), fileName_1 + ":77:11")(tsplus_module_5.map(r => new _IO.Runtime(r.environment, r.
|
33
|
+
return tsplus_module_5.map(r => handlers.map(handler => (req, res, next) => r.unsafeRunAsync(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(() => open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31")), fileName_1 + ":77:11")(tsplus_module_5.map(r => new _IO.Runtime(r.environment, r.runtimeFlags, r.fiberRefs), fileName_1 + ":76:11")(tsplus_module_4.runtime(fileName_1 + ":69:22")));
|
52
34
|
}
|
53
|
-
|
54
35
|
return {
|
55
36
|
app,
|
56
37
|
server,
|
@@ -60,7 +41,6 @@ const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplus_modul
|
|
60
41
|
const onError = err => {
|
61
42
|
cb(tsplus_module_5.halt(() => new _errors.NodeServerListenError(err), fileName_1 + ":44:19"));
|
62
43
|
};
|
63
|
-
|
64
44
|
const server = app.listen(config.port, config.host, () => {
|
65
45
|
cb(tsplus_module_5.succeed(() => {
|
66
46
|
server.removeListener("error", onError);
|
@@ -80,11 +60,9 @@ const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplus_modul
|
|
80
60
|
exports.makeExpressApp = makeExpressApp;
|
81
61
|
const LiveExpressApp = /*#__PURE__*/tsplus_module_8.scoped(() => makeExpressApp, ExpressAppTag, fileName_1 + ":95:43");
|
82
62
|
exports.LiveExpressApp = LiveExpressApp;
|
83
|
-
|
84
63
|
function LiveExpress(host, port, exitHandler) {
|
85
64
|
return tsplus_module_8.andTo(LiveExpressApp, fileName_1 + ":110:83")((0, _ExpressAppConfig.LiveExpressAppConfig)(host, port, exitHandler ?? _ExitHandler.defaultExitHandler));
|
86
65
|
}
|
87
|
-
|
88
66
|
function expressRuntime(handlers) {
|
89
67
|
return tsplus_module_7.serviceWithIO(_ => _.runtime(handlers), ExpressAppTag, fileName_1 + ":125:26");
|
90
68
|
}
|
package/_cjs/ExpressApp.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExpressApp.cjs","mappings":"
|
1
|
+
{"version":3,"file":"ExpressApp.cjs","mappings":";;;;;;;;;;;;;;;;;;AAMA;AACA;AACA;AAEA;AACA;AACA;AAA6D;AAAA;AAAA;;AAmBtD,MAAMA,aAAa,gBAAGC,wBAAgB,0BAA0B,CAAC;AAAC;AAElE,MAAMC,cAAc,wCACnBC,IAAI,4BAEJC,GAAG,4BAEHC,MAAM,wBAENC,MAAM;EA2BZ,SAASC,OAAO,CAAgDC,QAAkB;IAChF,OAAOC,oBAQCC,CAAC,IACLF,QAAQ,CAACG,GAAG,CACTC,OAAO,IACN,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,KACbL,CAAC,CAACM,cAAc,CACdC,8BAAkEZ,MAAM,CAACa,WAAW,CAACL,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,+BAAnGZ,IAAI,CAACgB,GAAG,GAAGP,OAAO,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,GAAEK,yBAAc,CAAkD,wBACtG,CACN,yBAfEX,oBAOCC,CAAC,IAAK,IAAIW,WAAO,CAACX,CAAC,CAACY,WAAW,EAAEZ,CAAC,CAACa,YAAY,EAAEb,CAAC,CAACc,SAAS,CAAC,yBAP9DC,8CAMJ,CACmE,CASnE;EACL;EAEA,OAAO;IACLrB,GAAG;IACHE,MAAM;IACNC;GACD;0BAlDCmB,2DAAgCC,EAAE,IAAI;EACpC,MAAMC,OAAO,GAAIC,GAAU,IAAI;IAC7BF,EAAE,CAAClB,2BAAQ,IAAIqB,6BAAqB,CAACD,GAAG,CAAC,wBAAC,CAAC;EAC7C,CAAC;EACD,MAAMvB,MAAM,GAAGF,GAAG,CAAC2B,MAAM,CAAC1B,MAAM,CAAC2B,IAAI,EAAE3B,MAAM,CAAC4B,IAAI,EAAE,MAAK;IACvDN,EAAE,CACAlB,wBAAW,MAAK;MACdH,MAAM,CAAC4B,cAAc,CAAC,OAAO,EAAEN,OAAO,CAAC;MACvC,OAAOtB,MAAM;IACf,CAAC,wBAAC,CACH;EACH,CAAC,CAAC;EACFA,MAAM,CAAC6B,WAAW,CAAC,OAAO,EAAEP,OAAO,CAAC;AACtC,CAAC,CAAC,EAAiBtB,MAAM,IACvBG,sBAA8BkB,EAAE,IAAI;EAClCrB,MAAM,CAAC8B,KAAK,CAAEP,GAAG,IAAI;IACnB,IAAIA,GAAG,EAAE;MACPF,EAAE,CAAClB,2BAAQ,IAAI4B,4BAAoB,CAACR,GAAG,CAAC,wBAAC,CAAC;KAC3C,MAAM;MACLF,EAAE,CAAClB,yCAAS,CAAC;;EAEjB,CAAC,CAAC;AACJ,CAAC,CAAC,wBACH,0BA1Bc6B,wBAAWC,qCAAmB,wBAAC,0BAFlC9B,wBAAW,MAAM,oBAAO,GAAE,wBAAC,wCAF1BiB,mEAAW,IAAIc,4BAAa,CAAC,IAAI,CAAC,wBAAC,EAAiBC,CAAC,IAAKhC,wBAAW,MAAMgC,CAAC,CAACC,GAAG,CAAC,KAAK,CAAC,wBAAC,wBAAC,CA0DxG;AAAC;AAEI,MAAMC,cAAc,gBAAGC,6BAAa1C,cAAc,EAAEF,aAAa,wBAAC;AAAC;AAUpE,SAAU6C,WAAW,CACzBZ,IAAY,EACZD,IAAY,EACZd,WAAyG;EAEzG,OAAO0B,sBAA0ED,cAAc,0BAAxF,0CAAoB,EAACV,IAAI,EAAED,IAAI,EAAEd,WAAW,IAAI4B,+BAAkB,CAAC,CAAsB;AAClG;AAEM,SAAUC,cAAc,CAC5BvC,QAA0E;EAW1E,OAAO8B,8BAAkBG,CAAC,IAAKA,CAAC,CAAClC,OAAO,CAACC,QAAQ,CAAC,EAAER,aAAa,yBAAC;AACpE","names":["ExpressAppTag","tsplus_module_1","makeExpressApp","open","app","config","server","runtime","handlers","tsplus_module_5","r","map","handler","req","res","next","unsafeRunAsync","tsplus_module_3","exitHandler","get","tsplus_module_2","Runtime","environment","runtimeFlags","fiberRefs","tsplus_module_4","tsplus_module_6","cb","onError","err","NodeServerListenError","listen","port","host","removeListener","addListener","close","NodeServerCloseError","tsplus_module_7","ExpressAppConfigTag","AtomicBoolean","_","set","LiveExpressApp","tsplus_module_8","LiveExpress","defaultExitHandler","expressRuntime"],"sourceRoot":"","sources":["../_src/ExpressApp.ts"],"sourcesContent":[null]}
|
@@ -5,21 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.ExpressAppConfigTag = void 0;
|
7
7
|
exports.LiveExpressAppConfig = LiveExpressAppConfig;
|
8
|
-
|
9
8
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Tag/constructors"));
|
10
|
-
|
11
9
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
|
12
|
-
|
13
10
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Layer/api"));
|
14
|
-
|
15
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
16
|
-
|
17
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
18
|
-
|
19
13
|
const fileName_1 = "(@fncts/express) src/ExpressAppConfig.ts";
|
20
14
|
const ExpressAppConfigTag = /*#__PURE__*/tsplus_module_1.makeTag("fncts.express.ExpressAppConfig");
|
21
15
|
exports.ExpressAppConfigTag = ExpressAppConfigTag;
|
22
|
-
|
23
16
|
function LiveExpressAppConfig(host, port, exitHandler) {
|
24
17
|
return tsplus_module_3.fromIO(tsplus_module_2.environmentWith(r => ({
|
25
18
|
host,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExpressAppConfig.cjs","mappings":"
|
1
|
+
{"version":3,"file":"ExpressAppConfig.cjs","mappings":";;;;;;;;;;;;;AAQO,MAAMA,mBAAmB,gBAAGC,wBAAsB,gCAAgC,CAAC;AAAC;AAErF,SAAUC,oBAAoB,CAClCC,IAAY,EACZC,IAAY,EACZC,WAA2B;EAE3B,OAAOC,uBACLC,gCAAoBC,CAAiB,KAAM;IACzCL,IAAI;IACJC,IAAI;IACJC,WAAW,EAAE,CAACI,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAMC,KAAK,IAAKL,mCAAsDC,CAAC,0BAAvDH,WAAW,CAACI,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,CAACC,KAAK,CAAC;GAC/E,CAAC,wBAAC,EACHZ,mBAAmB,wBACpB;AACH","names":["ExpressAppConfigTag","tsplus_module_1","LiveExpressAppConfig","host","port","exitHandler","tsplus_module_3","tsplus_module_2","r","req","res","next","cause"],"sourceRoot":"","sources":["../_src/ExpressAppConfig.ts"],"sourcesContent":[null]}
|
package/_cjs/errors.cjs
CHANGED
@@ -4,24 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.NodeServerListenError = exports.NodeServerCloseError = void 0;
|
7
|
-
|
8
7
|
class NodeServerCloseError {
|
9
8
|
constructor(error) {
|
10
9
|
this.error = error;
|
11
10
|
this._tag = "NodeServerCloseError";
|
12
11
|
}
|
13
|
-
|
14
12
|
}
|
15
|
-
|
16
13
|
exports.NodeServerCloseError = NodeServerCloseError;
|
17
|
-
|
18
14
|
class NodeServerListenError {
|
19
15
|
constructor(error) {
|
20
16
|
this.error = error;
|
21
17
|
this._tag = "NodeServerListenError";
|
22
18
|
}
|
23
|
-
|
24
19
|
}
|
25
|
-
|
26
20
|
exports.NodeServerListenError = NodeServerListenError;
|
27
21
|
//# sourceMappingURL=errors.cjs.map
|
package/_cjs/errors.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.cjs","mappings":"
|
1
|
+
{"version":3,"file":"errors.cjs","mappings":";;;;;;AAAM,MAAOA,oBAAoB;EAE/BC,YAAqBC,KAAY;IAAZ,UAAK,GAALA,KAAK;IADjB,SAAI,GAAG,sBAAsB;EACF;;AACrC;AAEK,MAAOC,qBAAqB;EAEhCF,YAAqBC,KAAY;IAAZ,UAAK,GAALA,KAAK;IADjB,SAAI,GAAG,uBAAuB;EACH;;AACrC","names":["NodeServerCloseError","constructor","error","NodeServerListenError"],"sourceRoot":"","sources":["../_src/errors.ts"],"sourcesContent":[null]}
|
package/_cjs/index.cjs
CHANGED
@@ -42,13 +42,9 @@ exports.mSearch = exports.lock = exports.head = exports.get = exports.delete = e
|
|
42
42
|
exports.match = match;
|
43
43
|
exports.unsubscribe = exports.unlock = exports.trace = exports.subscribe = exports.search = exports.report = exports.put = exports.purge = exports.proppatch = exports.propfind = exports.post = exports.patch = exports.options = exports.notify = exports.move = exports.mkcol = exports.mkactivity = exports.methods = exports.merge = void 0;
|
44
44
|
exports.use = use;
|
45
|
-
|
46
45
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
47
|
-
|
48
46
|
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
|
49
|
-
|
50
47
|
var _ExpressApp = /*#__PURE__*/require("./ExpressApp.cjs");
|
51
|
-
|
52
48
|
Object.keys(_ExpressApp).forEach(function (key) {
|
53
49
|
if (key === "default" || key === "__esModule") return;
|
54
50
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -60,9 +56,7 @@ Object.keys(_ExpressApp).forEach(function (key) {
|
|
60
56
|
}
|
61
57
|
});
|
62
58
|
});
|
63
|
-
|
64
59
|
var _errors = /*#__PURE__*/require("./errors.cjs");
|
65
|
-
|
66
60
|
Object.keys(_errors).forEach(function (key) {
|
67
61
|
if (key === "default" || key === "__esModule") return;
|
68
62
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -74,9 +68,7 @@ Object.keys(_errors).forEach(function (key) {
|
|
74
68
|
}
|
75
69
|
});
|
76
70
|
});
|
77
|
-
|
78
71
|
var _ExitHandler = /*#__PURE__*/require("./ExitHandler.cjs");
|
79
|
-
|
80
72
|
Object.keys(_ExitHandler).forEach(function (key) {
|
81
73
|
if (key === "default" || key === "__esModule") return;
|
82
74
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -88,9 +80,7 @@ Object.keys(_ExitHandler).forEach(function (key) {
|
|
88
80
|
}
|
89
81
|
});
|
90
82
|
});
|
91
|
-
|
92
83
|
var _ExpressAppConfig = /*#__PURE__*/require("./ExpressAppConfig.cjs");
|
93
|
-
|
94
84
|
Object.keys(_ExpressAppConfig).forEach(function (key) {
|
95
85
|
if (key === "default" || key === "__esModule") return;
|
96
86
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -102,9 +92,7 @@ Object.keys(_ExpressAppConfig).forEach(function (key) {
|
|
102
92
|
}
|
103
93
|
});
|
104
94
|
});
|
105
|
-
|
106
95
|
var _RequestHandlerIO = /*#__PURE__*/require("./RequestHandlerIO.cjs");
|
107
|
-
|
108
96
|
Object.keys(_RequestHandlerIO).forEach(function (key) {
|
109
97
|
if (key === "default" || key === "__esModule") return;
|
110
98
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -116,21 +104,16 @@ Object.keys(_RequestHandlerIO).forEach(function (key) {
|
|
116
104
|
}
|
117
105
|
});
|
118
106
|
});
|
119
|
-
|
120
107
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
121
|
-
|
122
108
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
123
|
-
|
124
109
|
const fileName_1 = "(@fncts/express) src/index.ts";
|
125
110
|
const methods = ["all", "get", "post", "put", "delete", "patch", "options", "head", "checkout", "connect", "copy", "lock", "merge", "mkactivity", "mkcol", "move", "m-search", "notify", "propfind", "proppatch", "purge", "report", "search", "subscribe", "trace", "unlock", "unsubscribe"];
|
126
111
|
exports.methods = methods;
|
127
|
-
|
128
112
|
function match(method) {
|
129
113
|
return function (path, ...handlers) {
|
130
114
|
return tsplus_module_1.flatMap(expressHandlers => tsplus_module_2.serviceWithIO(service => tsplus_module_1.succeed(() => service.app[method](path, ...expressHandlers), fileName_1 + ":71:44"), _ExpressApp.ExpressAppTag, fileName_1 + ":70:23"), fileName_1 + ":69:84")((0, _ExpressApp.expressRuntime)(handlers));
|
131
115
|
};
|
132
116
|
}
|
133
|
-
|
134
117
|
function use(...args) {
|
135
118
|
return tsplus_module_1.asUnit(tsplus_module_2.serviceWithIO(service => {
|
136
119
|
if (typeof args[0] === "function") {
|
@@ -140,7 +123,6 @@ function use(...args) {
|
|
140
123
|
}
|
141
124
|
}, _ExpressApp.ExpressAppTag, fileName_1 + ":102:26"), fileName_1 + ":112:20");
|
142
125
|
}
|
143
|
-
|
144
126
|
const all = /*#__PURE__*/match("all");
|
145
127
|
exports.all = all;
|
146
128
|
const get = /*#__PURE__*/match("get");
|
@@ -195,7 +177,6 @@ const unlock = /*#__PURE__*/match("unlock");
|
|
195
177
|
exports.unlock = unlock;
|
196
178
|
const unsubscribe = /*#__PURE__*/match("unsubscribe");
|
197
179
|
exports.unsubscribe = unsubscribe;
|
198
|
-
|
199
180
|
function classic(_) {
|
200
181
|
return (req, res, next) => tsplus_module_1.succeed(() => _(req, res, next), fileName_1 + ":150:40");
|
201
182
|
}
|
package/_cjs/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","mappings":"
|
1
|
+
{"version":3,"file":"index.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AAIA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAFA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAEA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAAsC;AA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CAAC,OAAO,CAAC;AAAC;AACnC,MAAMkC,MAAM,gBAAQlC,KAAK,CAAC,QAAQ,CAAC;AAAC;AACpC,MAAMmC,MAAM,gBAAQnC,KAAK,CAAC,QAAQ,CAAC;AAAC;AACpC,MAAMoC,SAAS,gBAAKpC,KAAK,CAAC,WAAW,CAAC;AAAC;AACvC,MAAMqC,KAAK,gBAASrC,KAAK,CAAC,OAAO,CAAC;AAAC;AACnC,MAAMsC,MAAM,gBAAQtC,KAAK,CAAC,QAAQ,CAAC;AAAC;AACpC,MAAMuC,WAAW,gBAAGvC,KAAK,CAAC,aAAa,CAAC;AAAC;AAO1C,SAAUwC,OAAO,CAACC,CAAsC;EAC5D,OAAO,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAKxC,wBAAW,MAAMqC,CAAC,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,yBAAC;AAChE","names":["methods","match","method","path","handlers","tsplus_module_1","expressHandlers","tsplus_module_2","service","app","ExpressAppTag","use","args","slice","all","get","post","put","delete_","patch","options","head","checkout","connect","copy","lock","merge","mkactivity","mkcol","move","mSearch","notify","propfind","proppatch","purge","report","search","subscribe","trace","unlock","unsubscribe","classic","_","req","res","next"],"sourceRoot":"","sources":["../_src/index.ts"],"sourcesContent":[null]}
|
package/_mjs/ExitHandler.mjs
CHANGED
package/_mjs/ExitHandler.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExitHandler.mjs","mappings":";;;;AAMA,OAAM,SAAUA,
|
1
|
+
{"version":3,"file":"ExitHandler.mjs","mappings":";;;;AAMA,OAAM,SAAUA,kBAAkB,CAChCC,IAAa,EACbC,IAAc,EACdC,KAAmB;EAEnB,OAAQC,KAAK,IACXC,wBAAW,MAAK;IACd,2BAAID,KAAK,GAAS;MAChBE,OAAO,CAACC,KAAK,6BAACH,KAAK,EAAa;;IAElCF,IAAI,CAACM,MAAM,CAAC,GAAG,CAAC,CAACC,GAAG,EAAE;EACxB,CAAC,wBAAC;AACN","names":["defaultExitHandler","_req","_res","_next","cause","tsplus_module_3","console","error","status","end"],"sourceRoot":"","sources":["../_src/ExitHandler.ts"],"sourcesContent":[null]}
|
package/_mjs/ExpressApp.mjs
CHANGED
@@ -17,9 +17,8 @@ import { ExpressAppConfigTag } from "./ExpressAppConfig.mjs";
|
|
17
17
|
export const ExpressAppTag = /*#__PURE__*/tsplus_module_1.makeTag("fncts.express.ExpressApp");
|
18
18
|
export const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplus_module_5.flatMap(app => tsplus_module_5.flatMap(config => tsplus_module_5.map(server => {
|
19
19
|
function runtime(handlers) {
|
20
|
-
return tsplus_module_5.map(r => handlers.map(handler => (req, res, next) => r.unsafeRunAsync(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(() => open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31")), fileName_1 + ":77:11")(tsplus_module_5.map(r => new Runtime(r.environment, r.
|
20
|
+
return tsplus_module_5.map(r => handlers.map(handler => (req, res, next) => r.unsafeRunAsync(tsplus_module_3.onTermination(config.exitHandler(req, res, next), fileName_1 + ":82:82")(() => open.get ? handler(req, res, next) : tsplus_module_2.interrupt), fileName_1 + ":81:31")), fileName_1 + ":77:11")(tsplus_module_5.map(r => new Runtime(r.environment, r.runtimeFlags, r.fiberRefs), fileName_1 + ":76:11")(tsplus_module_4.runtime(fileName_1 + ":69:22")));
|
21
21
|
}
|
22
|
-
|
23
22
|
return {
|
24
23
|
app,
|
25
24
|
server,
|
@@ -29,7 +28,6 @@ export const makeExpressApp = /*#__PURE__*/tsplus_module_5.flatMap(open => tsplu
|
|
29
28
|
const onError = err => {
|
30
29
|
cb(tsplus_module_5.halt(() => new NodeServerListenError(err), fileName_1 + ":44:19"));
|
31
30
|
};
|
32
|
-
|
33
31
|
const server = app.listen(config.port, config.host, () => {
|
34
32
|
cb(tsplus_module_5.succeed(() => {
|
35
33
|
server.removeListener("error", onError);
|
package/_mjs/ExpressApp.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExpressApp.mjs","mappings":";;;;;;;;;AAMA,SAASA,
|
1
|
+
{"version":3,"file":"ExpressApp.mjs","mappings":";;;;;;;;;AAMA,SAASA,aAAa,QAAQ,oCAAoC;AAClE,SAASC,OAAO,QAAQ,cAAc;AACtC,OAAOC,OAAO,MAAM,SAAS;AAE7B,SAASC,oBAAoB,EAAEC,qBAAqB,QAAQ,cAAa;AACzE,SAASC,kBAAkB,QAAQ,mBAAkB;AACrD,SAASC,oBAAoB,QAAQ,wBAAuB;AAC5D,SAASC,mBAAmB,QAAQ,wBAAuB;AAkB3D,OAAO,MAAMC,aAAa,gBAAGC,wBAAgB,0BAA0B,CAAC;AAExE,OAAO,MAAMC,cAAc,wCACnBC,IAAI,4BAEJC,GAAG,4BAEHC,MAAM,wBAENC,MAAM;EA2BZ,SAASC,OAAO,CAAgDC,QAAkB;IAChF,OAAOC,oBAQCC,CAAC,IACLF,QAAQ,CAACG,GAAG,CACTC,OAAO,IACN,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,KACbL,CAAC,CAACM,cAAc,CACdC,8BAAkEZ,MAAM,CAACa,WAAW,CAACL,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,+BAAnGZ,IAAI,CAACgB,GAAG,GAAGP,OAAO,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,GAAEK,yBAAc,CAAkD,wBACtG,CACN,yBAfEX,oBAOCC,CAAC,IAAK,IAAIjB,OAAO,CAACiB,CAAC,CAACW,WAAW,EAAEX,CAAC,CAACY,YAAY,EAAEZ,CAAC,CAACa,SAAS,CAAC,yBAP9DC,8CAMJ,CACmE,CASnE;EACL;EAEA,OAAO;IACLpB,GAAG;IACHE,MAAM;IACNC;GACD;0BAlDCkB,2DAAgCC,EAAE,IAAI;EACpC,MAAMC,OAAO,GAAIC,GAAU,IAAI;IAC7B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Ac,CAC5BjC,QAA0E;EAW1E,OAAO2B,8BAAkBC,CAAC,IAAKA,CAAC,CAAC7B,OAAO,CAACC,QAAQ,CAAC,EAAER,aAAa,yBAAC;AACpE","names":["AtomicBoolean","Runtime","express","NodeServerCloseError","NodeServerListenError","defaultExitHandler","LiveExpressAppConfig","ExpressAppConfigTag","ExpressAppTag","tsplus_module_1","makeExpressApp","open","app","config","server","runtime","handlers","tsplus_module_5","r","map","handler","req","res","next","unsafeRunAsync","tsplus_module_3","exitHandler","get","tsplus_module_2","environment","runtimeFlags","fiberRefs","tsplus_module_4","tsplus_module_6","cb","onError","err","listen","port","host","removeListener","addListener","close","tsplus_module_7","_","set","LiveExpressApp","tsplus_module_8","LiveExpress","expressRuntime"],"sourceRoot":"","sources":["../_src/ExpressApp.ts"],"sourcesContent":[null]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExpressAppConfig.mjs","mappings":";;;;AAQA,OAAO,MAAMA,mBAAmB,gBAAGC,wBAAsB,
|
1
|
+
{"version":3,"file":"ExpressAppConfig.mjs","mappings":";;;;AAQA,OAAO,MAAMA,mBAAmB,gBAAGC,wBAAsB,gCAAgC,CAAC;AAE1F,OAAM,SAAUC,oBAAoB,CAClCC,IAAY,EACZC,IAAY,EACZC,WAA2B;EAE3B,OAAOC,uBACLC,gCAAoBC,CAAiB,KAAM;IACzCL,IAAI;IACJC,IAAI;IACJC,WAAW,EAAE,CAACI,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAMC,KAAK,IAAKL,mCAAsDC,CAAC,0BAAvDH,WAAW,CAACI,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,CAACC,KAAK,CAAC;GAC/E,CAAC,wBAAC,EACHZ,mBAAmB,wBACpB;AACH","names":["ExpressAppConfigTag","tsplus_module_1","LiveExpressAppConfig","host","port","exitHandler","tsplus_module_3","tsplus_module_2","r","req","res","next","cause"],"sourceRoot":"","sources":["../_src/ExpressAppConfig.ts"],"sourcesContent":[null]}
|
package/_mjs/errors.mjs
CHANGED
@@ -3,13 +3,11 @@ export class NodeServerCloseError {
|
|
3
3
|
this.error = error;
|
4
4
|
this._tag = "NodeServerCloseError";
|
5
5
|
}
|
6
|
-
|
7
6
|
}
|
8
7
|
export class NodeServerListenError {
|
9
8
|
constructor(error) {
|
10
9
|
this.error = error;
|
11
10
|
this._tag = "NodeServerListenError";
|
12
11
|
}
|
13
|
-
|
14
12
|
}
|
15
13
|
//# sourceMappingURL=errors.mjs.map
|
package/_mjs/errors.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.mjs","mappings":"AAAA,OAAM,MAAOA,
|
1
|
+
{"version":3,"file":"errors.mjs","mappings":"AAAA,OAAM,MAAOA,oBAAoB;EAE/BC,YAAqBC,KAAY;IAAZ,UAAK,GAALA,KAAK;IADjB,SAAI,GAAG,sBAAsB;EACF;;AAGtC,OAAM,MAAOC,qBAAqB;EAEhCF,YAAqBC,KAAY;IAAZ,UAAK,GAALA,KAAK;IADjB,SAAI,GAAG,uBAAuB;EACH","names":["NodeServerCloseError","constructor","error","NodeServerListenError"],"sourceRoot":"","sources":["../_src/errors.ts"],"sourcesContent":[null]}
|
package/_mjs/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","mappings":";;;AAOA,SAASA,
|
1
|
+
{"version":3,"file":"index.mjs","mappings":";;;AAOA,SAASA,aAAa,EAAEC,cAAc,QAAQ,kBAAiB;AAE/D,cAAc,cAAa;AAC3B,cAAc,mBAAkB;AAChC,cAAc,kBAAiB;AAC/B,cAAc,wBAAuB;AACrC,cAAc,wBAAuB;AAErC,OAAO,MAAMC,OAAO,GAAG,CACrB,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,MAAM,EACN,UAAU,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,YAAY,EACZ,OAAO,EACP,MAAM,EAC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gBAAKpC,KAAK,CAAC,WAAW,CAAC;AAC7C,OAAO,MAAMqC,KAAK,gBAASrC,KAAK,CAAC,OAAO,CAAC;AACzC,OAAO,MAAMsC,MAAM,gBAAQtC,KAAK,CAAC,QAAQ,CAAC;AAC1C,OAAO,MAAMuC,WAAW,gBAAGvC,KAAK,CAAC,aAAa,CAAC;AAO/C,OAAM,SAAUwC,OAAO,CAACC,CAAsC;EAC5D,OAAO,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,KAAKxC,wBAAW,MAAMqC,CAAC,CAACC,GAAG,EAAEC,GAAG,EAAEC,IAAI,CAAC,yBAAC;AAChE","names":["ExpressAppTag","expressRuntime","methods","match","method","path","handlers","tsplus_module_1","expressHandlers","tsplus_module_2","service","app","use","args","slice","all","get","post","put","delete_","delete","patch","options","head","checkout","connect","copy","lock","merge","mkactivity","mkcol","move","mSearch","notify","propfind","proppatch","purge","report","search","subscribe","trace","unlock","unsubscribe","classic","_","req","res","next"],"sourceRoot":"","sources":["../_src/index.ts"],"sourcesContent":[null]}
|
package/_src/ExpressApp.ts
CHANGED
@@ -73,7 +73,7 @@ export const makeExpressApp: IO<Scope | ExpressAppConfig, never, ExpressApp> = D
|
|
73
73
|
}[number]
|
74
74
|
>
|
75
75
|
>()
|
76
|
-
.map((r) => new Runtime(r.environment, r.
|
76
|
+
.map((r) => new Runtime(r.environment, r.runtimeFlags, r.fiberRefs))
|
77
77
|
.map((r) =>
|
78
78
|
handlers.map(
|
79
79
|
(handler): RequestHandler =>
|
package/index.d.ts
CHANGED
@@ -27,34 +27,34 @@ export declare function use<Handlers extends Array<RequestHandlerRouteIO>>(...ha
|
|
27
27
|
export declare function use<Route extends string, Handlers extends Array<RequestHandlerRouteIO<any, Route>>>(path: Route, ...handlers: never extends Handlers ? Array<RequestHandlerRouteIO<any, Route>> : Handlers): URIO<ExpressEnv | _R<{
|
28
28
|
[k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? URIO<R, void> : never;
|
29
29
|
}[number]>, void>;
|
30
|
-
export declare const all: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
31
|
-
export declare const get: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
32
|
-
export declare const post: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
33
|
-
export declare const put: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
34
|
-
declare const delete_: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
30
|
+
export declare const all: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
31
|
+
export declare const get: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
32
|
+
export declare const post: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
33
|
+
export declare const put: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
34
|
+
declare const delete_: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
35
35
|
export { delete_ as delete };
|
36
|
-
export declare const patch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
37
|
-
export declare const options: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
38
|
-
export declare const head: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
39
|
-
export declare const checkout: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
40
|
-
export declare const connect: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
41
|
-
export declare const copy: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
42
|
-
export declare const lock: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
43
|
-
export declare const merge: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
44
|
-
export declare const mkactivity: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
45
|
-
export declare const mkcol: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
46
|
-
export declare const move: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
47
|
-
export declare const mSearch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
48
|
-
export declare const notify: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
49
|
-
export declare const propfind: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
50
|
-
export declare const proppatch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
51
|
-
export declare const purge: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
52
|
-
export declare const report: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
53
|
-
export declare const search: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
54
|
-
export declare const subscribe: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
55
|
-
export declare const trace: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
56
|
-
export declare const unlock: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
57
|
-
export declare const unsubscribe: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv |
|
36
|
+
export declare const patch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
37
|
+
export declare const options: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
38
|
+
export declare const head: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
39
|
+
export declare const checkout: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
40
|
+
export declare const connect: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
41
|
+
export declare const copy: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
42
|
+
export declare const lock: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
43
|
+
export declare const merge: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
44
|
+
export declare const mkactivity: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
45
|
+
export declare const mkcol: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
46
|
+
export declare const move: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
47
|
+
export declare const mSearch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
48
|
+
export declare const notify: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
49
|
+
export declare const propfind: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
50
|
+
export declare const proppatch: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
51
|
+
export declare const purge: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
52
|
+
export declare const report: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
53
|
+
export declare const search: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
54
|
+
export declare const subscribe: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
55
|
+
export declare const trace: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
56
|
+
export declare const unlock: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
57
|
+
export declare const unsubscribe: <Route extends string, Handlers extends RequestHandlerRouteIO<any, Route>[]>(path: Route, ...handlers: never extends Handlers ? RequestHandlerIO<any, Route, RouteParameters<Route>, any, any, import("./RequestHandlerIO.js").ParsedQs, Record<string, any>>[] : Handlers) => import("@fncts/io/IO.js").URIO<ExpressEnv | _R<{ [k in keyof Handlers]: [Handlers[k]] extends [ErasedRequestHandlerIO<infer R>] ? import("@fncts/io/IO.js").URIO<R, void> : never; }[number]>, void>;
|
58
58
|
/**
|
59
59
|
* Lift an express requestHandler into an effectified variant
|
60
60
|
*/
|