hold my beer function handle<Input extends t.HasProps, Output extends t.HasProps>( verb: "get" | "post", path: string, validator: {input: t.ExactC<Input>, output: t.ExactC<Output>}, handler: (payload: t.TypeOf<t.ExactC<Input>>) => t.TypeOf<t.ExactC<Output>> ) {
-
-
This isn't related to the middleware thing; it's just a first shot at statically verifying the request/response types while simultaneously setting up runtime validations on them.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.