0.1.1 (#2)
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:
14
package.json
14
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thilawyn/thilalib",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"./dist"
|
||||
@@ -46,20 +46,20 @@
|
||||
"clean:node": "rm -rf node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"remeda": "^2.0.10",
|
||||
"remeda": "^2.2.0",
|
||||
"type-fest": "^4.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bun-types": "^1.1.13",
|
||||
"bun-types": "^1.1.15",
|
||||
"npm-check-updates": "^16.14.20",
|
||||
"npm-sort": "^0.0.4",
|
||||
"tsup": "^8.1.0",
|
||||
"tsx": "^4.15.6",
|
||||
"typescript": "^5.4.5"
|
||||
"tsx": "^4.15.7",
|
||||
"typescript": "^5.5.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@effect/schema": "^0.68.0",
|
||||
"effect": "^3.3.4",
|
||||
"@effect/schema": "^0.68.5",
|
||||
"effect": "^3.4.0",
|
||||
"mobx": "^6.12.4"
|
||||
}
|
||||
}
|
||||
|
||||
9
src/effect/schema/Tag.ts
Normal file
9
src/effect/schema/Tag.ts
Normal 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,
|
||||
)
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
export { Jsonifiable } from "./Jsonifiable"
|
||||
export { Tag } from "./Tag"
|
||||
|
||||
Reference in New Issue
Block a user