Trait refactoring
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-03 02:18:36 +01:00
parent 3c40a0a96b
commit c1097ff2f2
3 changed files with 43 additions and 33 deletions

View File

@@ -3,6 +3,10 @@ import { Opaque } from "type-fest"
export type AbstractTag = "@thilawyn/traitify-ts/Abstract"
export function abstract<Abstract extends object = {}>() {
return {} as Opaque<Abstract, AbstractTag>
export function abstract<
Abstract extends {} = {}
>(): (
Opaque<Abstract, AbstractTag>
) {
return undefined as any
}