0.1.0 #1
@@ -1,5 +1,5 @@
|
|||||||
import { ThSchema } from "@thilawyn/thilaschema"
|
import { ThSchema } from "@thilawyn/thilaschema"
|
||||||
import { CuidState, DateTimes, GetRandomValues, makeCuid } from "@typed/id"
|
import { GetRandomValues, makeUuid4 } from "@typed/id"
|
||||||
import { Effect, Schema } from "effect"
|
import { Effect, Schema } from "effect"
|
||||||
|
|
||||||
|
|
||||||
@@ -21,8 +21,6 @@ export const TodoFromJsonStruct = Schema.Struct({
|
|||||||
export const TodoFromJson = TodoFromJsonStruct.pipe(Schema.compose(Todo))
|
export const TodoFromJson = TodoFromJsonStruct.pipe(Schema.compose(Todo))
|
||||||
|
|
||||||
|
|
||||||
export const generateUniqueID = makeCuid.pipe(
|
export const generateUniqueID = makeUuid4.pipe(
|
||||||
Effect.provide(CuidState.layer("@reffuse/example")),
|
Effect.provide(GetRandomValues.CryptoRandom)
|
||||||
Effect.provide(GetRandomValues.CryptoRandom),
|
|
||||||
Effect.provide(DateTimes.Default),
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user