类型别名 PropertySchemaStrict

严格属性模式: PropertySchemaCommon({
    可选?: 布尔
    类型: Exclude<PrimitivePropertyTypeName, "mixed">
} | {
    可选?: true
    类型: "mixed"
} | {
    objectType: Exclude<PrimitivePropertyTypeName, "mixed">
    可选?: 布尔
    类型: CollectionPropertyTypeName
} | {
    objectType: "mixed"
    可选?: true
    类型: CollectionPropertyTypeName
} | {
    objectType: UserTypeName
    可选?: false
    类型: "list" | "set"
} | {
    objectType: UserTypeName
    可选?: true
    类型: "dictionary"
} | {
    objectType: UserTypeName
    可选?: true
    类型: "object"
} | {
    objectType: UserTypeName
    可选?: false
    财产: 字符串
    类型: "linkingObjects"
})

用于指定特定 Realm 对象属性类型的严格模式。

与不太严格的PropertySchema不同,此类型精确定义了类型要求及其允许的组合;但是, Typescript错误消息往往更具误导性。 因此,建议使用PropertySchema ,但也提供严格类型作为指导。

PropertySchema ,提供此处定义的要求的文本解释以及每个属性的文档。

使用TypeDoc生成