effect-schema-viz
    Preparing search index...

    Function addSchemas

    • Compile the given Effect schemas and add any object types of Struct or Class to the given graph. Returns the updated graph with nodes added, and an error for each node that could not not be added.

      Parameters

      Returns (schemas: readonly [All, All]) => Effect<GraphResult>

      A pair of graph and error list. The graph will be returned unmodified only if no object types are found, or if all found failed compilation, in which case an error for each given schema will be found in the error list.

        • (schemas: readonly [All, All]): Effect<GraphResult>
        • Array of Effect/Schema schemas. Only the object types, structs or classes, will be added to the graph. Non-object types will be returned as errors.

          Parameters

          • schemas: readonly [All, All]

          Returns Effect<GraphResult>