-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): parametizes elements for services types
- Loading branch information
Showing
17 changed files
with
254 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { | ||
Service, | ||
Element, | ||
Tree, | ||
Type, | ||
CollectionTree, | ||
ScopeTree, | ||
TreeTypes, | ||
TreeServices, | ||
ErrorType, | ||
RequestType, | ||
ResponseType, | ||
ResponseTypeChildren | ||
} from './collection'; | ||
import { QueryService, MutationService, SubscriptionService } from './services'; | ||
|
||
// Groups | ||
export type AppElement = Element< | ||
QueryService, | ||
MutationService, | ||
SubscriptionService | ||
>; | ||
export type AppTree = Tree<QueryService, MutationService, SubscriptionService>; | ||
export type AppType = Type<QueryService, SubscriptionService>; | ||
export type AppService<I = any, O = any> = Service< | ||
QueryService<I, O>, | ||
MutationService<I, O>, | ||
SubscriptionService<I, O> | ||
>; | ||
|
||
// Tree | ||
export type AppCollectionTree = CollectionTree< | ||
QueryService, | ||
MutationService, | ||
SubscriptionService | ||
>; | ||
export type AppScopeTree = ScopeTree< | ||
QueryService, | ||
MutationService, | ||
SubscriptionService | ||
>; | ||
export type AppTreeTypes = TreeTypes<QueryService, SubscriptionService>; | ||
export type AppTreeServices = TreeServices< | ||
QueryService, | ||
MutationService, | ||
SubscriptionService | ||
>; | ||
|
||
// Types | ||
export type AppErrorType = ErrorType; | ||
export type AppRequestType = RequestType; | ||
export type AppResponseType<I = any, O = any> = ResponseType< | ||
QueryService<I, O>, | ||
SubscriptionService<I, O> | ||
>; | ||
export type AppResponseTypeChildren<I = any, O = any> = ResponseTypeChildren< | ||
QueryService<I, O>, | ||
SubscriptionService<I, O> | ||
>; |
Oops, something went wrong.