Class: TypesyncHypergraphSchema
Defined in: packages/hypergraph/src/cli/services/Model.ts:43
Extends
object
Constructors
Constructor
new TypesyncHypergraphSchema(
props
,options?
):TypesyncHypergraphSchema
Defined in: node_modules/.pnpm/effect@3.17.13/node_modules/effect/dist/dts/Schema.d.ts:4265
Parameters
props
types
readonly TypesyncHypergraphSchemaType
[] = ...
options?
MakeOptions
Returns
TypesyncHypergraphSchema
Inherited from
Schema.Class<TypesyncHypergraphSchema>( '/Hypergraph/cli/models/TypesyncHypergraphSchema', )({ types: Schema.Array(TypesyncHypergraphSchemaType).pipe( Schema.minItems(1), Schema.filter(Utils.namesAreUnique, { identifier: 'DuplicateTypeNames', jsonSchema: {}, description: 'The type.name must be unique across all types in the schema', }), Schema.filter(Mapping.allRelationPropertyTypesExist, { identifier: 'AllRelationTypesExist', jsonSchema: {}, description: 'Each type property of dataType RELATION must have a type of the same name in the schema', }), ), }).constructor
Properties
types
readonly
types: readonlyTypesyncHypergraphSchemaType
[]
Defined in: packages/hypergraph/src/cli/services/Model.ts:46
Inherited from
Schema.Class<TypesyncHypergraphSchema>( '/Hypergraph/cli/models/TypesyncHypergraphSchema', )({ types: Schema.Array(TypesyncHypergraphSchemaType).pipe( Schema.minItems(1), Schema.filter(Utils.namesAreUnique, { identifier: 'DuplicateTypeNames', jsonSchema: {}, description: 'The type.name must be unique across all types in the schema', }), Schema.filter(Mapping.allRelationPropertyTypesExist, { identifier: 'AllRelationTypesExist', jsonSchema: {}, description: 'Each type property of dataType RELATION must have a type of the same name in the schema', }), ), }).types