0.1.1 (#2)
All checks were successful
Publish / publish (push) Successful in 14s
Lint / lint (push) Successful in 10s

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: https://git.jvalver.de/Thilawyn/thilalib/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
Julien Valverdé
2024-06-23 01:24:53 +02:00
parent b0b472e2b2
commit a8f7bf0616
4 changed files with 17 additions and 7 deletions

9
src/effect/schema/Tag.ts Normal file
View File

@@ -0,0 +1,9 @@
import { Schema as S } from "@effect/schema"
export function Tag<Tag extends string>(tag: Tag) {
return S.withConstructorDefault(
S.propertySignature(S.Literal(tag)),
() => tag,
)
}

View File

@@ -1 +1,2 @@
export { Jsonifiable } from "./Jsonifiable"
export { Tag } from "./Tag"