LawConfig.model
property · packages/remote/src/law.ts:43
readonly model: AppModelThe application's Model before the client holds anything; Remote.make's viewer reads it.
Remote / foldkit-remote/testing
interface · packages/remote/src/law.ts:41
interface LawConfig<AppModel> {
readonly model: AppModel
readonly holds: ReadonlyArray<{
readonly entity: AnyEntity
readonly ids: ReadonlyArray<string>
}>
readonly lists?: ReadonlyArray<QueryRef<string, unknown>> | undefined
readonly mutation: MutationDescriptor<string, any, any, any>
readonly input: unknown
readonly now: number
}LawConfig.modelproperty · packages/remote/src/law.ts:43
readonly model: AppModelThe application's Model before the client holds anything; Remote.make's viewer reads it.
LawConfig.holdsproperty · packages/remote/src/law.ts:45
readonly holds: ReadonlyArray<{
readonly entity: AnyEntity
readonly ids: ReadonlyArray<string>
}>The rows the client holds, each read whole as the server's principal sees it.
LawConfig.listsproperty · packages/remote/src/law.ts:47
readonly lists?: ReadonlyArray<QueryRef<string, unknown>> | undefinedLists the client holds, wholly loaded, whose placements are compared.
LawConfig.mutationproperty · packages/remote/src/law.ts:48
readonly mutation: MutationDescriptor<string, any, any, any>LawConfig.inputproperty · packages/remote/src/law.ts:49
readonly input: unknownLawConfig.nowproperty · packages/remote/src/law.ts:51
readonly now: numberWhen the reader acted: what the client predicts with and the request sends.