Subtrait work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-02 22:42:45 +01:00
parent 58de52ffc0
commit acc26c7e0c
3 changed files with 37 additions and 2 deletions

8
src/abstract.ts Normal file
View File

@@ -0,0 +1,8 @@
import { Opaque } from "type-fest"
export type AbstractTag = "@thilawyn/traitify-ts/Abstract"
export function abstract<Abstract extends object = {}>() {
return {} as Opaque<Abstract, AbstractTag>
}