Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
13 lines (7 loc) · 761 Bytes

File metadata and controls

13 lines (7 loc) · 761 Bytes

@ceramic-sdk/model-protocol v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-protocol / ModelViewsDefinitionV2

Variable: ModelViewsDefinitionV2

const ModelViewsDefinitionV2: NonEnumerableRecordCodec<TrivialCodec<string>, UnionCodec<[UnionCodec<[ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>]>, UnionCodec<[ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>]>]>>

A mapping between model's property names and types of view properties

It indicates which properties of a model are view properties and of what type