@trpc/server 10.0.0-alpha.37 → 10.0.0-alpha.38
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/dist/core/middleware.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/internals.d.ts +11 -0
- package/dist/internals.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/internals.ts +14 -0
|
@@ -61,7 +61,7 @@ export declare type MiddlewareFunction<TParams extends ProcedureParams, TParamsA
|
|
|
61
61
|
*/
|
|
62
62
|
export declare function createMiddlewareFactory<TConfig extends RootConfig>(): <$TNewParams extends ProcedureParams<{
|
|
63
63
|
transformer: import("..").CombinedDataTransformer;
|
|
64
|
-
errorShape: import("
|
|
64
|
+
errorShape: import("..").DefaultErrorShape;
|
|
65
65
|
ctx: Record<string, unknown>;
|
|
66
66
|
meta: Record<string, unknown>;
|
|
67
67
|
}, unknown, unknown, unknown, unknown, unknown, unknown, unknown>>(fn: MiddlewareFunction<{
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These types have to be exported so users can generate their own types definitions files
|
|
3
|
+
*/
|
|
4
|
+
export type { DefaultErrorShape } from './error/formatter';
|
|
5
|
+
export type { mergeRoutersGeneric } from './core/internals/__generated__/mergeRoutersGeneric';
|
|
6
|
+
export type { ProcedureBuilder } from './core/internals/procedureBuilder';
|
|
7
|
+
export type { Overwrite, unsetMarker } from './core/internals/utils';
|
|
8
|
+
export type { MiddlewareFunction } from './core/middleware';
|
|
9
|
+
export type { Router, RouterDef } from './core/router';
|
|
10
|
+
export type { MutationProcedure, QueryProcedure, SubscriptionProcedure, } from './core/procedure';
|
|
11
|
+
//# sourceMappingURL=internals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,YAAY,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.38",
|
|
4
4
|
"description": "tRPC Server",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"tslib": "^2.1.0"
|
|
141
141
|
},
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "0c40cb7ebfd8762ef482ff72cc54c2cf3ef4a0a8"
|
|
143
143
|
}
|
package/src/index.ts
CHANGED
package/src/internals.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These types have to be exported so users can generate their own types definitions files
|
|
3
|
+
*/
|
|
4
|
+
export type { DefaultErrorShape } from './error/formatter';
|
|
5
|
+
export type { mergeRoutersGeneric } from './core/internals/__generated__/mergeRoutersGeneric';
|
|
6
|
+
export type { ProcedureBuilder } from './core/internals/procedureBuilder';
|
|
7
|
+
export type { Overwrite, unsetMarker } from './core/internals/utils';
|
|
8
|
+
export type { MiddlewareFunction } from './core/middleware';
|
|
9
|
+
export type { Router, RouterDef } from './core/router';
|
|
10
|
+
export type {
|
|
11
|
+
MutationProcedure,
|
|
12
|
+
QueryProcedure,
|
|
13
|
+
SubscriptionProcedure,
|
|
14
|
+
} from './core/procedure';
|