@tsonic/express 10.0.23 → 10.0.24
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/README.md +11 -1
- package/docs/advanced.md +109 -0
- package/docs/deviations.md +20 -0
- package/docs/generation.md +47 -0
- package/docs/release.md +37 -0
- package/docs/snippets/10/body-parsing.ts +5 -0
- package/docs/snippets/10/create-app-router.ts +3 -0
- package/docs/snippets/10/error-middleware.ts +3 -0
- package/docs/snippets/10/hello-world-app.ts +12 -0
- package/docs/snippets/10/listen-close.ts +3 -0
- package/docs/snippets/10/middleware.ts +5 -0
- package/docs/snippets/10/quick-start-app.ts +12 -0
- package/docs/snippets/10/routing.ts +7 -0
- package/docs/snippets/10/static-files.ts +2 -0
- package/index/bindings.json +38 -238
- package/index/internal/index.d.ts +4 -14
- package/package.json +1 -1
- package/tsonic.bindings.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ export function main(): void {
|
|
|
33
33
|
|
|
34
34
|
app.listen(3000);
|
|
35
35
|
}
|
|
36
|
+
|
|
36
37
|
EOF
|
|
37
38
|
|
|
38
39
|
npm run dev
|
|
@@ -55,6 +56,7 @@ export function main(): void {
|
|
|
55
56
|
|
|
56
57
|
app.listen(3000);
|
|
57
58
|
}
|
|
59
|
+
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
## Basic API Surface
|
|
@@ -66,6 +68,7 @@ import { express } from "@tsonic/express/index.js";
|
|
|
66
68
|
|
|
67
69
|
const app = express.create();
|
|
68
70
|
const router = express.Router();
|
|
71
|
+
|
|
69
72
|
```
|
|
70
73
|
|
|
71
74
|
### Routing
|
|
@@ -79,6 +82,7 @@ app.put("/items/:id", (req, res) => res.send(req.param("id")));
|
|
|
79
82
|
app.delete("/items/:id", (_req, res) => res.sendStatus(204));
|
|
80
83
|
app.patch("/items/:id", (_req, res) => res.sendStatus(204));
|
|
81
84
|
app.all("/anything", (_req, res) => res.send("matched"));
|
|
85
|
+
|
|
82
86
|
```
|
|
83
87
|
|
|
84
88
|
### Middleware
|
|
@@ -88,12 +92,13 @@ app.use((req, _res, next) => {
|
|
|
88
92
|
// Do something with req
|
|
89
93
|
next();
|
|
90
94
|
});
|
|
95
|
+
|
|
91
96
|
```
|
|
92
97
|
|
|
93
98
|
Error middleware:
|
|
94
99
|
|
|
95
100
|
```ts
|
|
96
|
-
app.
|
|
101
|
+
app.useError((err, _req, res, _next) => {
|
|
97
102
|
res.status(500).json({ error: `${err}` });
|
|
98
103
|
});
|
|
99
104
|
```
|
|
@@ -122,12 +127,14 @@ app.use(express.json());
|
|
|
122
127
|
app.use(express.urlencoded());
|
|
123
128
|
app.use(express.text());
|
|
124
129
|
app.use(express.raw());
|
|
130
|
+
|
|
125
131
|
```
|
|
126
132
|
|
|
127
133
|
### Static files
|
|
128
134
|
|
|
129
135
|
```ts
|
|
130
136
|
app.use(express.static("./public"));
|
|
137
|
+
|
|
131
138
|
```
|
|
132
139
|
|
|
133
140
|
### Listen / close
|
|
@@ -135,6 +142,7 @@ app.use(express.static("./public"));
|
|
|
135
142
|
```ts
|
|
136
143
|
const server = app.listen(3000);
|
|
137
144
|
server.close();
|
|
145
|
+
|
|
138
146
|
```
|
|
139
147
|
|
|
140
148
|
## Advanced docs
|
|
@@ -152,3 +160,5 @@ This repo is versioned by runtime major:
|
|
|
152
160
|
## License
|
|
153
161
|
|
|
154
162
|
MIT
|
|
163
|
+
|
|
164
|
+
|
package/docs/advanced.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Advanced usage (`@tsonic/express`)
|
|
2
|
+
|
|
3
|
+
This doc covers patterns that go beyond “hello world”.
|
|
4
|
+
|
|
5
|
+
For known compatibility gaps vs Express/Node, see `docs/deviations.md`.
|
|
6
|
+
|
|
7
|
+
## Routers
|
|
8
|
+
|
|
9
|
+
Use routers to structure your app:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { express } from "@tsonic/express/index.js";
|
|
13
|
+
|
|
14
|
+
export function main(): void {
|
|
15
|
+
const app = express.create();
|
|
16
|
+
|
|
17
|
+
const api = express.Router();
|
|
18
|
+
api.get("/health", (_req, res) => res.send("ok"));
|
|
19
|
+
|
|
20
|
+
app.use("/api", api);
|
|
21
|
+
app.listen(3000);
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Middleware ordering
|
|
26
|
+
|
|
27
|
+
Middlewares run in the order you register them:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
app.use((req, _res, next) => {
|
|
31
|
+
// pre
|
|
32
|
+
next();
|
|
33
|
+
// post
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Error middleware
|
|
38
|
+
|
|
39
|
+
Error handlers have `(err, req, res, next)` shape:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
app.useError((err, _req, res, _next) => {
|
|
43
|
+
res.status(500).json({ error: `${err}` });
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Handler return types (sync vs async)
|
|
48
|
+
|
|
49
|
+
Handlers can be synchronous:
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
app.get("/", (_req, res) => {
|
|
53
|
+
res.send("ok");
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Or `async`:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
app.get("/slow", async (_req, res) => {
|
|
61
|
+
// await something
|
|
62
|
+
res.send("done");
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Body parsing options
|
|
67
|
+
|
|
68
|
+
The built-in body parsers return request handlers:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
app.use(express.json());
|
|
72
|
+
app.use(express.urlencoded());
|
|
73
|
+
app.use(express.text());
|
|
74
|
+
app.use(express.raw());
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Most options types are exported from `@tsonic/express/index.js`:
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
import { express, JsonOptions } from "@tsonic/express/index.js";
|
|
81
|
+
|
|
82
|
+
const json = new JsonOptions();
|
|
83
|
+
// set options here
|
|
84
|
+
app.use(express.json(json));
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Static files
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
app.use(express.static("./public"));
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Response helpers
|
|
94
|
+
|
|
95
|
+
Common response patterns:
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
res.status(200).json({ ok: true });
|
|
99
|
+
res.sendStatus(204);
|
|
100
|
+
res.redirect("/login");
|
|
101
|
+
res.set("x-powered-by", "tsonic");
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Cookies
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
res.cookie("sid", "abc123");
|
|
108
|
+
res.clearCookie("sid");
|
|
109
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Express Compatibility Deviations
|
|
2
|
+
|
|
3
|
+
This package reflects the `express-clr` runtime behavior.
|
|
4
|
+
|
|
5
|
+
Authoritative deviations live in:
|
|
6
|
+
|
|
7
|
+
- `../express-clr/docs/deviations.md`
|
|
8
|
+
|
|
9
|
+
Key current items:
|
|
10
|
+
|
|
11
|
+
1. `express()` callable form is represented as `express.create()` / `express.app()`.
|
|
12
|
+
2. C#-safe method names are used for some verbs (`lock_`, `m_search`), with `method("...")` for exact-verb routing.
|
|
13
|
+
3. `next('router')` remains best-effort under flattened mount behavior.
|
|
14
|
+
4. Advanced path-pattern behavior is best-effort; common string and `:param` patterns are covered.
|
|
15
|
+
5. Built-in parser/static middleware behavior is close, not byte-for-byte identical to upstream Node middleware internals.
|
|
16
|
+
6. Cookie signing/signed-cookie behavior is best-effort, not a full `cookie-parser` edge-case clone.
|
|
17
|
+
7. Handler dispatch in runtime is reflection-free; unsupported delegate signatures are ignored instead of reflection invocation.
|
|
18
|
+
8. Runtime JSON support is reflection-free and guarantees primitives, dictionaries, arrays/lists, and `JsonElement`/`JsonDocument` shapes. Arbitrary CLR object/anonymous-object reflection serialization is intentionally not provided.
|
|
19
|
+
|
|
20
|
+
Deviations should shrink over time and are validated through the runtime test matrix in `express-clr`.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generation Workflow
|
|
2
|
+
|
|
3
|
+
This repository publishes generated TypeScript bindings for `express-clr`.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- `../express-clr` exists and is built in `Release`.
|
|
8
|
+
- `../tsbindgen` exists and builds.
|
|
9
|
+
- `../dotnet/versions/<major>` exists.
|
|
10
|
+
- `../aspnetcore` exists.
|
|
11
|
+
- Local .NET runtime and ASP.NET runtime are installed under `$DOTNET_HOME` (default `$HOME/.dotnet`).
|
|
12
|
+
|
|
13
|
+
## Generate for .NET 10
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run generate:10
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Equivalent script:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
./__build/scripts/generate.sh 10
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What the Script Does
|
|
26
|
+
|
|
27
|
+
1. Validates dependencies and runtime paths.
|
|
28
|
+
2. Cleans `versions/<major>/` generated output.
|
|
29
|
+
3. Builds `tsbindgen` in `Release`.
|
|
30
|
+
4. Generates bindings from `express-clr` assembly.
|
|
31
|
+
5. Copies `README.md` and `LICENSE`.
|
|
32
|
+
6. Prunes output to package-focused files:
|
|
33
|
+
- `index.d.ts`
|
|
34
|
+
- `index.js`
|
|
35
|
+
- `index/bindings.json`
|
|
36
|
+
- `index/internal/index.d.ts`
|
|
37
|
+
- `families.json`
|
|
38
|
+
- `package.json`
|
|
39
|
+
- `README.md`
|
|
40
|
+
- `LICENSE`
|
|
41
|
+
|
|
42
|
+
## Environment Overrides
|
|
43
|
+
|
|
44
|
+
- `DOTNET_HOME`
|
|
45
|
+
- `DOTNET_VERSION`
|
|
46
|
+
|
|
47
|
+
Use these when runtime paths are non-default.
|
package/docs/release.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Release Workflow
|
|
2
|
+
|
|
3
|
+
This repo publishes one package per .NET major under `versions/<major>/`.
|
|
4
|
+
|
|
5
|
+
## .NET 10 Release Steps
|
|
6
|
+
|
|
7
|
+
1. Ensure `express-clr` changes are merged and pulled to `main`.
|
|
8
|
+
2. Regenerate bindings:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm run generate:10
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
3. Review generated diffs in `versions/10/`.
|
|
15
|
+
4. Update `versions/10/package.json` version if needed.
|
|
16
|
+
5. Validate package metadata and README.
|
|
17
|
+
6. Publish:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm run publish:10
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Post-Publish Checks
|
|
24
|
+
|
|
25
|
+
- Confirm npm package page for `@tsonic/express`.
|
|
26
|
+
- Verify install from a clean sample:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm i @tsonic/express@10
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- Smoke-check import and basic usage.
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
- Runtime behavior changes belong to `express-clr`.
|
|
37
|
+
- This repo should only contain generated API/package-facing artifacts and docs.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
app.get("/health", (_req, res) => res.send("ok"));
|
|
2
|
+
app.post("/items", (req, res) => res.json(req.body));
|
|
3
|
+
app.put("/items/:id", (req, res) => res.send(req.param("id")));
|
|
4
|
+
app.delete("/items/:id", (_req, res) => res.sendStatus(204));
|
|
5
|
+
app.patch("/items/:id", (_req, res) => res.sendStatus(204));
|
|
6
|
+
app.all("/anything", (_req, res) => res.send("matched"));
|
|
7
|
+
|
package/index/bindings.json
CHANGED
|
@@ -9660,70 +9660,10 @@
|
|
|
9660
9660
|
"declaringAssemblyName": "express",
|
|
9661
9661
|
"isExtensionMethod": false
|
|
9662
9662
|
},
|
|
9663
|
-
{
|
|
9664
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9665
|
-
"clrName": "use",
|
|
9666
|
-
"metadataToken": 100663954,
|
|
9667
|
-
"canonicalSignature": "(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9668
|
-
"normalizedSignature": "use|(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf|static=false",
|
|
9669
|
-
"emitScope": "ClassSurface",
|
|
9670
|
-
"provenance": "Original",
|
|
9671
|
-
"arity": 0,
|
|
9672
|
-
"parameterCount": 2,
|
|
9673
|
-
"isStatic": false,
|
|
9674
|
-
"isAbstract": false,
|
|
9675
|
-
"isVirtual": false,
|
|
9676
|
-
"isOverride": false,
|
|
9677
|
-
"isSealed": false,
|
|
9678
|
-
"visibility": "Public",
|
|
9679
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9680
|
-
"declaringAssemblyName": "express",
|
|
9681
|
-
"isExtensionMethod": false
|
|
9682
|
-
},
|
|
9683
|
-
{
|
|
9684
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf",
|
|
9685
|
-
"clrName": "use",
|
|
9686
|
-
"metadataToken": 100663955,
|
|
9687
|
-
"canonicalSignature": "(express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf",
|
|
9688
|
-
"normalizedSignature": "use|(express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf|static=false",
|
|
9689
|
-
"emitScope": "ClassSurface",
|
|
9690
|
-
"provenance": "Original",
|
|
9691
|
-
"arity": 0,
|
|
9692
|
-
"parameterCount": 2,
|
|
9693
|
-
"isStatic": false,
|
|
9694
|
-
"isAbstract": false,
|
|
9695
|
-
"isVirtual": false,
|
|
9696
|
-
"isOverride": false,
|
|
9697
|
-
"isSealed": false,
|
|
9698
|
-
"visibility": "Public",
|
|
9699
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9700
|
-
"declaringAssemblyName": "express",
|
|
9701
|
-
"isExtensionMethod": false
|
|
9702
|
-
},
|
|
9703
|
-
{
|
|
9704
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9705
|
-
"clrName": "use",
|
|
9706
|
-
"metadataToken": 100663956,
|
|
9707
|
-
"canonicalSignature": "(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9708
|
-
"normalizedSignature": "use|(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf|static=false",
|
|
9709
|
-
"emitScope": "ClassSurface",
|
|
9710
|
-
"provenance": "Original",
|
|
9711
|
-
"arity": 0,
|
|
9712
|
-
"parameterCount": 2,
|
|
9713
|
-
"isStatic": false,
|
|
9714
|
-
"isAbstract": false,
|
|
9715
|
-
"isVirtual": false,
|
|
9716
|
-
"isOverride": false,
|
|
9717
|
-
"isSealed": false,
|
|
9718
|
-
"visibility": "Public",
|
|
9719
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9720
|
-
"declaringAssemblyName": "express",
|
|
9721
|
-
"isExtensionMethod": false
|
|
9722
|
-
},
|
|
9723
9663
|
{
|
|
9724
9664
|
"stableId": "express:express.RoutingHost\u00601::use(express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
9725
9665
|
"clrName": "use",
|
|
9726
|
-
"metadataToken":
|
|
9666
|
+
"metadataToken": 100663954,
|
|
9727
9667
|
"canonicalSignature": "(express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
9728
9668
|
"normalizedSignature": "use|(express.RequestHandler,express.RequestHandler[]):TSelf|static=false",
|
|
9729
9669
|
"emitScope": "ClassSurface",
|
|
@@ -9740,30 +9680,10 @@
|
|
|
9740
9680
|
"declaringAssemblyName": "express",
|
|
9741
9681
|
"isExtensionMethod": false
|
|
9742
9682
|
},
|
|
9743
|
-
{
|
|
9744
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf",
|
|
9745
|
-
"clrName": "use",
|
|
9746
|
-
"metadataToken": 100663958,
|
|
9747
|
-
"canonicalSignature": "(express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf",
|
|
9748
|
-
"normalizedSignature": "use|(express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf|static=false",
|
|
9749
|
-
"emitScope": "ClassSurface",
|
|
9750
|
-
"provenance": "Original",
|
|
9751
|
-
"arity": 0,
|
|
9752
|
-
"parameterCount": 2,
|
|
9753
|
-
"isStatic": false,
|
|
9754
|
-
"isAbstract": false,
|
|
9755
|
-
"isVirtual": false,
|
|
9756
|
-
"isOverride": false,
|
|
9757
|
-
"isSealed": false,
|
|
9758
|
-
"visibility": "Public",
|
|
9759
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9760
|
-
"declaringAssemblyName": "express",
|
|
9761
|
-
"isExtensionMethod": false
|
|
9762
|
-
},
|
|
9763
9683
|
{
|
|
9764
9684
|
"stableId": "express:express.RoutingHost\u00601::use(express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
9765
9685
|
"clrName": "use",
|
|
9766
|
-
"metadataToken":
|
|
9686
|
+
"metadataToken": 100663955,
|
|
9767
9687
|
"canonicalSignature": "(express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
9768
9688
|
"normalizedSignature": "use|(express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf|static=false",
|
|
9769
9689
|
"emitScope": "ClassSurface",
|
|
@@ -9780,130 +9700,10 @@
|
|
|
9780
9700
|
"declaringAssemblyName": "express",
|
|
9781
9701
|
"isExtensionMethod": false
|
|
9782
9702
|
},
|
|
9783
|
-
{
|
|
9784
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.RouteHandler,express.RouteHandler[]):TSelf",
|
|
9785
|
-
"clrName": "use",
|
|
9786
|
-
"metadataToken": 100663960,
|
|
9787
|
-
"canonicalSignature": "(express.RouteHandler,express.RouteHandler[]):TSelf",
|
|
9788
|
-
"normalizedSignature": "use|(express.RouteHandler,express.RouteHandler[]):TSelf|static=false",
|
|
9789
|
-
"emitScope": "ClassSurface",
|
|
9790
|
-
"provenance": "Original",
|
|
9791
|
-
"arity": 0,
|
|
9792
|
-
"parameterCount": 2,
|
|
9793
|
-
"isStatic": false,
|
|
9794
|
-
"isAbstract": false,
|
|
9795
|
-
"isVirtual": false,
|
|
9796
|
-
"isOverride": false,
|
|
9797
|
-
"isSealed": false,
|
|
9798
|
-
"visibility": "Public",
|
|
9799
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9800
|
-
"declaringAssemblyName": "express",
|
|
9801
|
-
"isExtensionMethod": false
|
|
9802
|
-
},
|
|
9803
|
-
{
|
|
9804
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf",
|
|
9805
|
-
"clrName": "use",
|
|
9806
|
-
"metadataToken": 100663961,
|
|
9807
|
-
"canonicalSignature": "(express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf",
|
|
9808
|
-
"normalizedSignature": "use|(express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf|static=false",
|
|
9809
|
-
"emitScope": "ClassSurface",
|
|
9810
|
-
"provenance": "Original",
|
|
9811
|
-
"arity": 0,
|
|
9812
|
-
"parameterCount": 2,
|
|
9813
|
-
"isStatic": false,
|
|
9814
|
-
"isAbstract": false,
|
|
9815
|
-
"isVirtual": false,
|
|
9816
|
-
"isOverride": false,
|
|
9817
|
-
"isSealed": false,
|
|
9818
|
-
"visibility": "Public",
|
|
9819
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9820
|
-
"declaringAssemblyName": "express",
|
|
9821
|
-
"isExtensionMethod": false
|
|
9822
|
-
},
|
|
9823
|
-
{
|
|
9824
|
-
"stableId": "express:express.RoutingHost\u00601::use(express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf",
|
|
9825
|
-
"clrName": "use",
|
|
9826
|
-
"metadataToken": 100663962,
|
|
9827
|
-
"canonicalSignature": "(express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf",
|
|
9828
|
-
"normalizedSignature": "use|(express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf|static=false",
|
|
9829
|
-
"emitScope": "ClassSurface",
|
|
9830
|
-
"provenance": "Original",
|
|
9831
|
-
"arity": 0,
|
|
9832
|
-
"parameterCount": 2,
|
|
9833
|
-
"isStatic": false,
|
|
9834
|
-
"isAbstract": false,
|
|
9835
|
-
"isVirtual": false,
|
|
9836
|
-
"isOverride": false,
|
|
9837
|
-
"isSealed": false,
|
|
9838
|
-
"visibility": "Public",
|
|
9839
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9840
|
-
"declaringAssemblyName": "express",
|
|
9841
|
-
"isExtensionMethod": false
|
|
9842
|
-
},
|
|
9843
|
-
{
|
|
9844
|
-
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9845
|
-
"clrName": "use",
|
|
9846
|
-
"metadataToken": 100663963,
|
|
9847
|
-
"canonicalSignature": "(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9848
|
-
"normalizedSignature": "use|(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf|static=false",
|
|
9849
|
-
"emitScope": "ClassSurface",
|
|
9850
|
-
"provenance": "Original",
|
|
9851
|
-
"arity": 0,
|
|
9852
|
-
"parameterCount": 3,
|
|
9853
|
-
"isStatic": false,
|
|
9854
|
-
"isAbstract": false,
|
|
9855
|
-
"isVirtual": false,
|
|
9856
|
-
"isOverride": false,
|
|
9857
|
-
"isSealed": false,
|
|
9858
|
-
"visibility": "Public",
|
|
9859
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9860
|
-
"declaringAssemblyName": "express",
|
|
9861
|
-
"isExtensionMethod": false
|
|
9862
|
-
},
|
|
9863
|
-
{
|
|
9864
|
-
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf",
|
|
9865
|
-
"clrName": "use",
|
|
9866
|
-
"metadataToken": 100663964,
|
|
9867
|
-
"canonicalSignature": "(System.String,express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf",
|
|
9868
|
-
"normalizedSignature": "use|(System.String,express.ErrorRequestHandlerReturn,express.ErrorRequestHandlerReturn[]):TSelf|static=false",
|
|
9869
|
-
"emitScope": "ClassSurface",
|
|
9870
|
-
"provenance": "Original",
|
|
9871
|
-
"arity": 0,
|
|
9872
|
-
"parameterCount": 3,
|
|
9873
|
-
"isStatic": false,
|
|
9874
|
-
"isAbstract": false,
|
|
9875
|
-
"isVirtual": false,
|
|
9876
|
-
"isOverride": false,
|
|
9877
|
-
"isSealed": false,
|
|
9878
|
-
"visibility": "Public",
|
|
9879
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9880
|
-
"declaringAssemblyName": "express",
|
|
9881
|
-
"isExtensionMethod": false
|
|
9882
|
-
},
|
|
9883
|
-
{
|
|
9884
|
-
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9885
|
-
"clrName": "use",
|
|
9886
|
-
"metadataToken": 100663965,
|
|
9887
|
-
"canonicalSignature": "(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9888
|
-
"normalizedSignature": "use|(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf|static=false",
|
|
9889
|
-
"emitScope": "ClassSurface",
|
|
9890
|
-
"provenance": "Original",
|
|
9891
|
-
"arity": 0,
|
|
9892
|
-
"parameterCount": 3,
|
|
9893
|
-
"isStatic": false,
|
|
9894
|
-
"isAbstract": false,
|
|
9895
|
-
"isVirtual": false,
|
|
9896
|
-
"isOverride": false,
|
|
9897
|
-
"isSealed": false,
|
|
9898
|
-
"visibility": "Public",
|
|
9899
|
-
"declaringClrType": "express.RoutingHost\u00601",
|
|
9900
|
-
"declaringAssemblyName": "express",
|
|
9901
|
-
"isExtensionMethod": false
|
|
9902
|
-
},
|
|
9903
9703
|
{
|
|
9904
9704
|
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
9905
9705
|
"clrName": "use",
|
|
9906
|
-
"metadataToken":
|
|
9706
|
+
"metadataToken": 100663956,
|
|
9907
9707
|
"canonicalSignature": "(System.String,express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
9908
9708
|
"normalizedSignature": "use|(System.String,express.RequestHandler,express.RequestHandler[]):TSelf|static=false",
|
|
9909
9709
|
"emitScope": "ClassSurface",
|
|
@@ -9921,11 +9721,11 @@
|
|
|
9921
9721
|
"isExtensionMethod": false
|
|
9922
9722
|
},
|
|
9923
9723
|
{
|
|
9924
|
-
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.
|
|
9724
|
+
"stableId": "express:express.RoutingHost\u00601::use(System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
9925
9725
|
"clrName": "use",
|
|
9926
|
-
"metadataToken":
|
|
9927
|
-
"canonicalSignature": "(System.String,express.
|
|
9928
|
-
"normalizedSignature": "use|(System.String,express.
|
|
9726
|
+
"metadataToken": 100663957,
|
|
9727
|
+
"canonicalSignature": "(System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
9728
|
+
"normalizedSignature": "use|(System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf|static=false",
|
|
9929
9729
|
"emitScope": "ClassSurface",
|
|
9930
9730
|
"provenance": "Original",
|
|
9931
9731
|
"arity": 0,
|
|
@@ -9941,15 +9741,15 @@
|
|
|
9941
9741
|
"isExtensionMethod": false
|
|
9942
9742
|
},
|
|
9943
9743
|
{
|
|
9944
|
-
"stableId": "express:express.RoutingHost\u00601::
|
|
9945
|
-
"clrName": "
|
|
9946
|
-
"metadataToken":
|
|
9947
|
-
"canonicalSignature": "(
|
|
9948
|
-
"normalizedSignature": "
|
|
9744
|
+
"stableId": "express:express.RoutingHost\u00601::useError(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9745
|
+
"clrName": "useError",
|
|
9746
|
+
"metadataToken": 100663958,
|
|
9747
|
+
"canonicalSignature": "(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9748
|
+
"normalizedSignature": "useError|(express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf|static=false",
|
|
9949
9749
|
"emitScope": "ClassSurface",
|
|
9950
9750
|
"provenance": "Original",
|
|
9951
9751
|
"arity": 0,
|
|
9952
|
-
"parameterCount":
|
|
9752
|
+
"parameterCount": 2,
|
|
9953
9753
|
"isStatic": false,
|
|
9954
9754
|
"isAbstract": false,
|
|
9955
9755
|
"isVirtual": false,
|
|
@@ -9961,15 +9761,15 @@
|
|
|
9961
9761
|
"isExtensionMethod": false
|
|
9962
9762
|
},
|
|
9963
9763
|
{
|
|
9964
|
-
"stableId": "express:express.RoutingHost\u00601::
|
|
9965
|
-
"clrName": "
|
|
9966
|
-
"metadataToken":
|
|
9967
|
-
"canonicalSignature": "(
|
|
9968
|
-
"normalizedSignature": "
|
|
9764
|
+
"stableId": "express:express.RoutingHost\u00601::useError(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9765
|
+
"clrName": "useError",
|
|
9766
|
+
"metadataToken": 100663959,
|
|
9767
|
+
"canonicalSignature": "(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9768
|
+
"normalizedSignature": "useError|(express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf|static=false",
|
|
9969
9769
|
"emitScope": "ClassSurface",
|
|
9970
9770
|
"provenance": "Original",
|
|
9971
9771
|
"arity": 0,
|
|
9972
|
-
"parameterCount":
|
|
9772
|
+
"parameterCount": 2,
|
|
9973
9773
|
"isStatic": false,
|
|
9974
9774
|
"isAbstract": false,
|
|
9975
9775
|
"isVirtual": false,
|
|
@@ -9981,11 +9781,11 @@
|
|
|
9981
9781
|
"isExtensionMethod": false
|
|
9982
9782
|
},
|
|
9983
9783
|
{
|
|
9984
|
-
"stableId": "express:express.RoutingHost\u00601::
|
|
9985
|
-
"clrName": "
|
|
9986
|
-
"metadataToken":
|
|
9987
|
-
"canonicalSignature": "(System.String,express.
|
|
9988
|
-
"normalizedSignature": "
|
|
9784
|
+
"stableId": "express:express.RoutingHost\u00601::useError(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9785
|
+
"clrName": "useError",
|
|
9786
|
+
"metadataToken": 100663960,
|
|
9787
|
+
"canonicalSignature": "(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf",
|
|
9788
|
+
"normalizedSignature": "useError|(System.String,express.ErrorRequestHandler,express.ErrorRequestHandler[]):TSelf|static=false",
|
|
9989
9789
|
"emitScope": "ClassSurface",
|
|
9990
9790
|
"provenance": "Original",
|
|
9991
9791
|
"arity": 0,
|
|
@@ -10001,11 +9801,11 @@
|
|
|
10001
9801
|
"isExtensionMethod": false
|
|
10002
9802
|
},
|
|
10003
9803
|
{
|
|
10004
|
-
"stableId": "express:express.RoutingHost\u00601::
|
|
10005
|
-
"clrName": "
|
|
10006
|
-
"metadataToken":
|
|
10007
|
-
"canonicalSignature": "(System.String,express.
|
|
10008
|
-
"normalizedSignature": "
|
|
9804
|
+
"stableId": "express:express.RoutingHost\u00601::useError(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9805
|
+
"clrName": "useError",
|
|
9806
|
+
"metadataToken": 100663961,
|
|
9807
|
+
"canonicalSignature": "(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf",
|
|
9808
|
+
"normalizedSignature": "useError|(System.String,express.ErrorRequestHandlerSync,express.ErrorRequestHandlerSync[]):TSelf|static=false",
|
|
10009
9809
|
"emitScope": "ClassSurface",
|
|
10010
9810
|
"provenance": "Original",
|
|
10011
9811
|
"arity": 0,
|
|
@@ -10023,7 +9823,7 @@
|
|
|
10023
9823
|
{
|
|
10024
9824
|
"stableId": "express:express.RoutingHost\u00601::route(System.String):express.Route",
|
|
10025
9825
|
"clrName": "route",
|
|
10026
|
-
"metadataToken":
|
|
9826
|
+
"metadataToken": 100663962,
|
|
10027
9827
|
"canonicalSignature": "(System.String):express.Route",
|
|
10028
9828
|
"normalizedSignature": "route|(System.String):express.Route|static=false",
|
|
10029
9829
|
"emitScope": "ClassSurface",
|
|
@@ -10043,7 +9843,7 @@
|
|
|
10043
9843
|
{
|
|
10044
9844
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RouteHandler,express.RouteHandler[]):TSelf",
|
|
10045
9845
|
"clrName": "method",
|
|
10046
|
-
"metadataToken":
|
|
9846
|
+
"metadataToken": 100663963,
|
|
10047
9847
|
"canonicalSignature": "(System.String,System.String,express.RouteHandler,express.RouteHandler[]):TSelf",
|
|
10048
9848
|
"normalizedSignature": "method|(System.String,System.String,express.RouteHandler,express.RouteHandler[]):TSelf|static=false",
|
|
10049
9849
|
"emitScope": "ClassSurface",
|
|
@@ -10063,7 +9863,7 @@
|
|
|
10063
9863
|
{
|
|
10064
9864
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf",
|
|
10065
9865
|
"clrName": "method",
|
|
10066
|
-
"metadataToken":
|
|
9866
|
+
"metadataToken": 100663964,
|
|
10067
9867
|
"canonicalSignature": "(System.String,System.String,express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf",
|
|
10068
9868
|
"normalizedSignature": "method|(System.String,System.String,express.RouteHandlerReturn,express.RouteHandlerReturn[]):TSelf|static=false",
|
|
10069
9869
|
"emitScope": "ClassSurface",
|
|
@@ -10083,7 +9883,7 @@
|
|
|
10083
9883
|
{
|
|
10084
9884
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf",
|
|
10085
9885
|
"clrName": "method",
|
|
10086
|
-
"metadataToken":
|
|
9886
|
+
"metadataToken": 100663965,
|
|
10087
9887
|
"canonicalSignature": "(System.String,System.String,express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf",
|
|
10088
9888
|
"normalizedSignature": "method|(System.String,System.String,express.RouteHandlerSync,express.RouteHandlerSync[]):TSelf|static=false",
|
|
10089
9889
|
"emitScope": "ClassSurface",
|
|
@@ -10103,7 +9903,7 @@
|
|
|
10103
9903
|
{
|
|
10104
9904
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
10105
9905
|
"clrName": "method",
|
|
10106
|
-
"metadataToken":
|
|
9906
|
+
"metadataToken": 100663966,
|
|
10107
9907
|
"canonicalSignature": "(System.String,System.String,express.RequestHandler,express.RequestHandler[]):TSelf",
|
|
10108
9908
|
"normalizedSignature": "method|(System.String,System.String,express.RequestHandler,express.RequestHandler[]):TSelf|static=false",
|
|
10109
9909
|
"emitScope": "ClassSurface",
|
|
@@ -10123,7 +9923,7 @@
|
|
|
10123
9923
|
{
|
|
10124
9924
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf",
|
|
10125
9925
|
"clrName": "method",
|
|
10126
|
-
"metadataToken":
|
|
9926
|
+
"metadataToken": 100663967,
|
|
10127
9927
|
"canonicalSignature": "(System.String,System.String,express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf",
|
|
10128
9928
|
"normalizedSignature": "method|(System.String,System.String,express.RequestHandlerReturn,express.RequestHandlerReturn[]):TSelf|static=false",
|
|
10129
9929
|
"emitScope": "ClassSurface",
|
|
@@ -10143,7 +9943,7 @@
|
|
|
10143
9943
|
{
|
|
10144
9944
|
"stableId": "express:express.RoutingHost\u00601::method(System.String,System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
10145
9945
|
"clrName": "method",
|
|
10146
|
-
"metadataToken":
|
|
9946
|
+
"metadataToken": 100663968,
|
|
10147
9947
|
"canonicalSignature": "(System.String,System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf",
|
|
10148
9948
|
"normalizedSignature": "method|(System.String,System.String,express.RequestHandlerSync,express.RequestHandlerSync[]):TSelf|static=false",
|
|
10149
9949
|
"emitScope": "ClassSurface",
|
|
@@ -10163,7 +9963,7 @@
|
|
|
10163
9963
|
{
|
|
10164
9964
|
"stableId": "express:express.RoutingHost\u00601::param(System.String,express.ParamHandler):TSelf",
|
|
10165
9965
|
"clrName": "param",
|
|
10166
|
-
"metadataToken":
|
|
9966
|
+
"metadataToken": 100663994,
|
|
10167
9967
|
"canonicalSignature": "(System.String,express.ParamHandler):TSelf",
|
|
10168
9968
|
"normalizedSignature": "param|(System.String,express.ParamHandler):TSelf|static=false",
|
|
10169
9969
|
"emitScope": "ClassSurface",
|
|
@@ -10207,7 +10007,7 @@
|
|
|
10207
10007
|
"constructors": [
|
|
10208
10008
|
{
|
|
10209
10009
|
"stableId": "express:express.RoutingHost\u00601::.ctor():void",
|
|
10210
|
-
"metadataToken":
|
|
10010
|
+
"metadataToken": 100663998,
|
|
10211
10011
|
"canonicalSignature": "():void",
|
|
10212
10012
|
"normalizedSignature": "constructor|():void|static=false",
|
|
10213
10013
|
"isStatic": false,
|
|
@@ -655,24 +655,14 @@ export interface RoutingHost_1$instance<TSelf extends RoutingHost_1<TSelf>> {
|
|
|
655
655
|
unsubscribe(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
656
656
|
unsubscribe(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
657
657
|
unsubscribe(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
658
|
-
use(callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
659
|
-
use(callback: ErrorRequestHandlerReturn, ...callbacks: ErrorRequestHandlerReturn[]): TSelf;
|
|
660
|
-
use(callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
661
658
|
use(callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
662
|
-
use(callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
663
659
|
use(callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
664
|
-
use(callback: RouteHandler, ...callbacks: RouteHandler[]): TSelf;
|
|
665
|
-
use(callback: RouteHandlerReturn, ...callbacks: RouteHandlerReturn[]): TSelf;
|
|
666
|
-
use(callback: RouteHandlerSync, ...callbacks: RouteHandlerSync[]): TSelf;
|
|
667
|
-
use(path: string, callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
668
|
-
use(path: string, callback: ErrorRequestHandlerReturn, ...callbacks: ErrorRequestHandlerReturn[]): TSelf;
|
|
669
|
-
use(path: string, callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
670
660
|
use(path: string, callback: RequestHandler, ...callbacks: RequestHandler[]): TSelf;
|
|
671
|
-
use(path: string, callback: RequestHandlerReturn, ...callbacks: RequestHandlerReturn[]): TSelf;
|
|
672
661
|
use(path: string, callback: RequestHandlerSync, ...callbacks: RequestHandlerSync[]): TSelf;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
662
|
+
useError(callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
663
|
+
useError(callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
664
|
+
useError(path: string, callback: ErrorRequestHandler, ...callbacks: ErrorRequestHandler[]): TSelf;
|
|
665
|
+
useError(path: string, callback: ErrorRequestHandlerSync, ...callbacks: ErrorRequestHandlerSync[]): TSelf;
|
|
676
666
|
}
|
|
677
667
|
|
|
678
668
|
|
package/package.json
CHANGED
package/tsonic.bindings.json
CHANGED