Skip to content

Commit

Permalink
Revert "fix(adapter): init types"
Browse files Browse the repository at this point in the history
This reverts commit 0ee8b41.
  • Loading branch information
LastLeaf committed Jul 10, 2024
1 parent 0ee8b41 commit 09be373
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type MethodList = typeUtils.MethodList
type ChainingFilterType = typeUtils.ChainingFilterType
type ComponentMethod = typeUtils.ComponentMethod
type TaggedMethod<Fn extends ComponentMethod> = typeUtils.TaggedMethod<Fn>
type UnTaggedMethod<M extends TaggedMethod<any>> = typeUtils.UnTaggedMethod<M>

export class BaseBehaviorBuilder<
TPrevData extends DataList = Empty,
Expand Down Expand Up @@ -261,12 +260,7 @@ export class BaseBehaviorBuilder<
TPrevData,
TData,
TProperty,
TMethod &
(TExport extends void
? Empty
: {
[K in keyof TExport]: UnTaggedMethod<TExport[K]>
}),
TMethod,
TChainingFilter,
TPendingChainingFilter,
TComponentExport,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type MethodList = typeUtils.MethodList
type ChainingFilterType = typeUtils.ChainingFilterType
type ComponentMethod = typeUtils.ComponentMethod
type TaggedMethod<Fn extends ComponentMethod> = typeUtils.TaggedMethod<Fn>
type UnTaggedMethod<M extends TaggedMethod<any>> = typeUtils.UnTaggedMethod<M>
type ChainingFilterFunc<
TAddedFields extends { [key: string]: any },
TRemovedFields extends string = never,
Expand Down Expand Up @@ -218,12 +217,7 @@ export class BehaviorBuilder<
TPrevData,
TData,
TProperty,
TMethod &
(TExport extends void
? Empty
: {
[K in keyof TExport]: UnTaggedMethod<TExport[K]>
}),
TMethod,
TChainingFilter,
TPendingChainingFilter,
TComponentExport,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type MethodList = typeUtils.MethodList
type ChainingFilterType = typeUtils.ChainingFilterType
type ComponentMethod = typeUtils.ComponentMethod
type TaggedMethod<Fn extends ComponentMethod> = typeUtils.TaggedMethod<Fn>
type UnTaggedMethod<M extends TaggedMethod<any>> = typeUtils.UnTaggedMethod<M>

/**
* A direct way to create a component
Expand Down Expand Up @@ -242,12 +241,7 @@ export class ComponentBuilder<
TPrevData,
TData,
TProperty,
TMethod &
(TExport extends void
? Empty
: {
[K in keyof TExport]: UnTaggedMethod<TExport[K]>
}),
TMethod,
TChainingFilter,
TPendingChainingFilter,
TComponentExport,
Expand Down

0 comments on commit 09be373

Please sign in to comment.