TypeDoc all the thngs
This commit is contained in:
@@ -2,10 +2,17 @@ import {ResponseFactory} from "./ResponseFactory"
|
||||
import {Rehydratable} from "@extollo/util"
|
||||
import {Request} from "../lifecycle/Request";
|
||||
|
||||
/**
|
||||
* Helper function that creates a DehydratedStateResponseFactory.
|
||||
* @param value
|
||||
*/
|
||||
export function dehydrate(value: Rehydratable): DehydratedStateResponseFactory {
|
||||
return new DehydratedStateResponseFactory(value)
|
||||
}
|
||||
|
||||
/**
|
||||
* Response factor that sends a Rehydratable class' data as JSON.
|
||||
*/
|
||||
export class DehydratedStateResponseFactory extends ResponseFactory {
|
||||
constructor(
|
||||
public readonly rehydratable: Rehydratable
|
||||
|
||||
Reference in New Issue
Block a user