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

Function UuidV4WithGenerate

packages/effect/src/unstable/schema/Model.ts:798–801  ·  view source on GitHub ↗
(
  schema: Schema.brand<Schema.String, B>
)

Source from the content-addressed store, hash-verified

796 * @since 4.0.0
797 */
798export const UuidV4WithGenerate = <B extends string>(
799 schema: Schema.brand<Schema.String, B>
800): Schema.withConstructorDefault<Schema.brand<Schema.String, B>> =>
801 schema.pipe(Schema.withConstructorDefault(Effect.sync(Uuid.v4String)))
802
803/**
804 * A field that represents a string UUID v4 that is generated on inserts.

Callers 1

UuidV4InsertFunction · 0.85

Calls 2

pipeMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected