Opaque unwraping fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-06 17:43:44 +01:00
parent 1f19da761f
commit da17765276

View File

@@ -1,5 +1,6 @@
import { Fn, Pipe, Tuples } from "hotscript" import { Fn, Pipe, Tuples } from "hotscript"
import { AbstractClass, Class, Opaque, UnwrapOpaque } from "type-fest" import { AbstractClass, Class, Opaque } from "type-fest"
import { tag } from "type-fest/source/opaque"
import { AbstractTag, TraitExpression, emptyTraitExpression } from "." import { AbstractTag, TraitExpression, emptyTraitExpression } from "."
import { ExtendFn, SimplifyFn, StaticMembers, StaticMembersFn } from "./util" import { ExtendFn, SimplifyFn, StaticMembers, StaticMembersFn } from "./util"
@@ -23,7 +24,7 @@ export type RemoveAbstractFromImplClass<
Omit<InstanceType<ImplClassWithAbstract>, keyof Abstract>, Omit<InstanceType<ImplClassWithAbstract>, keyof Abstract>,
ConstructorParameters<ImplClassWithAbstract> ConstructorParameters<ImplClassWithAbstract>
> & > &
UnwrapOpaque<StaticMembers<ImplClassWithAbstract>> Omit<StaticMembers<ImplClassWithAbstract>, typeof tag>
) )