( schema: Schema.brand<Schema.String, B> )
| 796 | * @since 4.0.0 |
| 797 | */ |
| 798 | export 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. |
no test coverage detected