ImplementsStatic -> StaticImplements
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thilawyn/traitify-ts",
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.8",
|
||||
"type": "module",
|
||||
"publishConfig": {
|
||||
"registry": "https://git.jvalver.de/api/packages/thilawyn/npm/"
|
||||
|
||||
@@ -39,7 +39,7 @@ export class TraitExpression<
|
||||
) as any
|
||||
}
|
||||
|
||||
implementsStatic(target: ImplementsStatic<typeof this>, context: any) {}
|
||||
staticImplements(target: StaticImplements<typeof this>, context: any) {}
|
||||
|
||||
subtrait<
|
||||
This extends TraitExpression<typeof TraitExpression.NullSuperclass, any>
|
||||
@@ -106,7 +106,7 @@ export type Implements<
|
||||
>
|
||||
)
|
||||
|
||||
export type ImplementsStatic<
|
||||
export type StaticImplements<
|
||||
Exp extends TraitExpression<any, Trait<any, any, any, any>[]>
|
||||
> = (
|
||||
Simplify<
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { TraitClass } from "./Trait"
|
||||
import { trait } from "./TraitBuilder"
|
||||
import { Implements, ImplementsStatic, TraitExpressionClass } from "./TraitExpression"
|
||||
import { Implements, StaticImplements, TraitExpressionClass } from "./TraitExpression"
|
||||
import { expression } from "./TraitExpressionBuilder"
|
||||
|
||||
|
||||
@@ -69,10 +69,10 @@ const exp = expression
|
||||
.build()
|
||||
|
||||
type Abs = Implements<typeof exp>
|
||||
type AbsStatic = ImplementsStatic<typeof exp>
|
||||
type AbsStatic = StaticImplements<typeof exp>
|
||||
type ExpClass = TraitExpressionClass<typeof exp>
|
||||
|
||||
@exp.implementsStatic
|
||||
@exp.staticImplements
|
||||
class User extends exp.extends implements Implements<typeof exp> {
|
||||
readonly isStatefulSubscription: true = true
|
||||
readonly isActiveStatefulSubscription: true = true
|
||||
|
||||
Reference in New Issue
Block a user