0.1.13 (#14)
All checks were successful
Publish / publish (push) Successful in 16s
Lint / lint (push) Successful in 11s

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
Julien Valverdé
2024-08-21 03:23:11 +02:00
parent c0433a8c76
commit 1bf1befd6d
3 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@thilawyn/thilalib",
"version": "0.1.12",
"version": "0.1.13",
"type": "module",
"files": [
"./dist"

10
src/Types/UnionToTuple.ts Normal file
View File

@@ -0,0 +1,10 @@
import type { UnionToIntersection } from "type-fest"
type LastOf<T> = UnionToIntersection<T extends any ? (x: T) => void : never> extends (x: infer Last) => void
? Last
: never
export type UnionToTuple<T, Last = LastOf<T>> = [T] extends [never]
? []
: [...UnionToTuple<Exclude<T, Last>>, Last]

View File

@@ -3,3 +3,4 @@ export * from "./Extend"
export * from "./Merge"
export * as PrismaJson from "./PrismaJson"
export * from "./StaticType"
export * from "./UnionToTuple"