Compare commits

...

2 Commits

Author SHA1 Message Date
f0bad1ed7f 1.0.1
All checks were successful
Publish / Publish npm package action (push) Successful in 15s
2026-02-08 10:04:32 +03:00
ee94bda295 feat: add util 2026-02-08 10:04:14 +03:00
4 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@teacinema/common", "name": "@teacinema/common",
"version": "1.0.0", "version": "1.0.1",
"description": "Common library for TeaCinema microservices", "description": "Common library for TeaCinema microservices",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

View File

@ -1,2 +1,2 @@
export * from './utils'
export * from './enums' export * from './enums'

View File

@ -0,0 +1,3 @@
export function convertEnum<T extends object>(target: T, value: string): T[keyof T] {
return (target as any)[value]
}

1
src/lib/utils/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './convert-enum.util'