This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
import { Opaque } from "type-fest"
|
|
||||||
|
|
||||||
|
|
||||||
export type AbstractTag = "@thilawyn/traitify-ts/Abstract"
|
|
||||||
|
|
||||||
export function abstract<
|
|
||||||
Abstract extends {} = {}
|
|
||||||
>() {
|
|
||||||
return {} as Opaque<Abstract, AbstractTag>
|
|
||||||
}
|
|
||||||
@@ -2,4 +2,3 @@ export { type Trait } from "./Trait"
|
|||||||
export { trait } from "./TraitBuilder"
|
export { trait } from "./TraitBuilder"
|
||||||
export { Implements, ImplementsStatic, type TraitExpression } from "./TraitExpression"
|
export { Implements, ImplementsStatic, type TraitExpression } from "./TraitExpression"
|
||||||
export { expression } from "./TraitExpressionBuilder"
|
export { expression } from "./TraitExpressionBuilder"
|
||||||
export { abstract } from "./abstract"
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { Trait } from "./Trait"
|
|||||||
import { trait } from "./TraitBuilder"
|
import { trait } from "./TraitBuilder"
|
||||||
import { Implements, ImplementsStatic } from "./TraitExpression"
|
import { Implements, ImplementsStatic } from "./TraitExpression"
|
||||||
import { expression } from "./TraitExpressionBuilder"
|
import { expression } from "./TraitExpressionBuilder"
|
||||||
import { abstract } from "./abstract"
|
|
||||||
|
|
||||||
|
|
||||||
const PrintsHelloOnNew = trait
|
const PrintsHelloOnNew = trait
|
||||||
|
|||||||
Reference in New Issue
Block a user