0.1.6 (#7)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
8
src/Schema/Kind.ts
Normal file
8
src/Schema/Kind.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Schema } from "@effect/schema"
|
||||
|
||||
|
||||
export const Kind = <Kind extends string>(kind: Kind) =>
|
||||
Schema.withConstructorDefault(
|
||||
Schema.propertySignature(Schema.Literal(kind)),
|
||||
() => kind,
|
||||
)
|
||||
Reference in New Issue
Block a user