Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Refactoring more decorators #32

Merged
merged 4 commits into from
Oct 29, 2017

Conversation

felipesabino
Copy link

  • Refactoring @Query, @Mutation, @Subscription and @Schema (now it is missing only @Field decorator and the ones related)
  • Moved @UseContainer decorator to decorator folder
  • Refactored schema.type-factory to be less verbose
  • Refactored Arguments and Metadata interfaces to reduce code duplication

@@ -55,6 +59,28 @@ export class MetadataBuilder {
}));
}

buildEntrytypeMetadata(target: any, type: EntryType): EntryTypeMetadata[] | undefined {
Copy link

@tibawatanabe tibawatanabe Oct 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entry T ypeMetadata

@@ -0,0 +1,6 @@
export interface DefaultOption {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default or common? which one is preferable?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about only Option, Metadata and Arg instead of DefaultOption, DefaultMetadata and DefaultArg?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some progress in other refactoring and will do this in my upcoming refactor PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Done at ea05219

@felipesabino felipesabino merged commit 6864c51 into master Oct 29, 2017
@felipesabino felipesabino deleted the feature/refactor-decorators branch October 29, 2017 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants