tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
allow rpc to return null
awarm.space
1 year ago
2b5b0813
aa8d9b26
+2
-2
1 changed file
expand all
collapse all
unified
split
app
api
rpc
lib.ts
+2
-2
app/api/rpc/lib.ts
···
3
3
type Route<
4
4
Cmd extends string,
5
5
Input extends ZodObject<ZodRawShape> | ZodUnion<any>,
6
6
-
Result extends object,
6
6
+
Result extends object | null,
7
7
Env extends {},
8
8
> = {
9
9
route: Cmd;
···
93
93
export function makeRoute<
94
94
Cmd extends string,
95
95
Input extends ZodObject<ZodRawShape> | ZodUnion<any>,
96
96
-
Result extends object,
96
96
+
Result extends object | null,
97
97
Env extends {},
98
98
>(d: Route<Cmd, Input, Result, Env>) {
99
99
return d;