MCPcopy Create free account
hub / github.com/Effect-TS/effect / schema

Function schema

packages/effect/src/unstable/eventlog/EventLog.ts:231–239  ·  view source on GitHub ↗
(
  ...groups: Groups
)

Source from the content-addressed store, hash-verified

229 * @since 4.0.0
230 */
231export const schema = <Groups extends ReadonlyArray<EventGroup.Any>>(
232 ...groups: Groups
233): EventLogSchema<Groups[number]> => {
234 const EventLog = Object.assign(function EventLog() {}, {
235 [SchemaTypeId]: SchemaTypeId,
236 groups
237 }) satisfies EventLogSchema<Groups[number]>
238 return EventLog
239}
240
241/**
242 * Type-level identifier used to brand `Handlers` values.

Callers

nothing calls this directly

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected