-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use meta for accurate resolvers map type (#304)
* Temporarily use alpha version to test * Use resolversType from meta * Baseline test with typesPrefix for more coverage * Add changeset * Bump to latest version
- Loading branch information
Showing
36 changed files
with
685 additions
and
417 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eddeee888/gcg-typescript-resolver-files': minor | ||
--- | ||
|
||
Fully support namingConvention for resolvers map |
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
4 changes: 2 additions & 2 deletions
4
...s/typescript-resolver-files-e2e/src/test-config-overrides/modules/base/rslvrs/Currency.ts
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type { CURRENCYRESOLVERS } from './../../types.gen'; | ||
export const Currency: CURRENCYRESOLVERS = { | ||
import type { I_CURRENCYRESOLVERS } from './../../types.gen'; | ||
export const Currency: I_CURRENCYRESOLVERS = { | ||
USD: 'USD', | ||
AUD: 'AUD', | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ages/typescript-resolver-files-e2e/src/test-config-overrides/modules/base/rslvrs/Error.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { ERRORRESOLVERS } from './../../types.gen'; | ||
export const Error: ERRORRESOLVERS = { | ||
import type { I_ERRORRESOLVERS } from './../../types.gen'; | ||
export const Error: I_ERRORRESOLVERS = { | ||
/* Implement Error interface logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
.../typescript-resolver-files-e2e/src/test-config-overrides/modules/base/rslvrs/ErrorType.ts
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
4 changes: 2 additions & 2 deletions
4
...ript-resolver-files-e2e/src/test-config-overrides/modules/base/rslvrs/PaginationResult.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { PAGINATIONRESULTRESOLVERS } from './../../types.gen'; | ||
export const PaginationResult: PAGINATIONRESULTRESOLVERS = { | ||
import type { I_PAGINATIONRESULTRESOLVERS } from './../../types.gen'; | ||
export const PaginationResult: I_PAGINATIONRESULTRESOLVERS = { | ||
/* Implement PaginationResult resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...escript-resolver-files-e2e/src/test-config-overrides/modules/base/rslvrs/StandardError.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { STANDARDERRORRESOLVERS } from './../../types.gen'; | ||
export const StandardError: STANDARDERRORRESOLVERS = { | ||
import type { I_STANDARDERRORRESOLVERS } from './../../types.gen'; | ||
export const StandardError: I_STANDARDERRORRESOLVERS = { | ||
/* Implement StandardError resolver logic here */ | ||
}; |
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
4 changes: 2 additions & 2 deletions
4
...resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/Mutation/topicCreate.ts
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { MUTATIONRESOLVERS } from './../../../types.gen'; | ||
import type { I_MUTATIONRESOLVERS } from './../../../types.gen'; | ||
export const topicCreate: NonNullable< | ||
MUTATIONRESOLVERS['topicCreate'] | ||
I_MUTATIONRESOLVERS['topicCreate'] | ||
> = async (_parent, _arg, _ctx) => { | ||
/* Implement Mutation.topicCreate resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...t-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/Mutation/topicEdit.ts
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
4 changes: 2 additions & 2 deletions
4
...ript-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/Query/topicById.ts
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
4 changes: 2 additions & 2 deletions
4
...ver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/Query/topicsCreatedByUser.ts
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { QUERYRESOLVERS } from './../../../types.gen'; | ||
import type { I_QUERYRESOLVERS } from './../../../types.gen'; | ||
export const topicsCreatedByUser: NonNullable< | ||
QUERYRESOLVERS['topicsCreatedByUser'] | ||
I_QUERYRESOLVERS['topicsCreatedByUser'] | ||
> = async (_parent, _arg, _ctx) => { | ||
/* Implement Query.topicsCreatedByUser resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ges/typescript-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/Topic.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICRESOLVERS } from './../../types.gen'; | ||
export const Topic: TOPICRESOLVERS = { | ||
import type { I_TOPICRESOLVERS } from './../../types.gen'; | ||
export const Topic: I_TOPICRESOLVERS = { | ||
/* Implement Topic resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ipt-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicByIdPayload.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICBYIDPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicByIdPayload: TOPICBYIDPAYLOADRESOLVERS = { | ||
import type { I_TOPICBYIDPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicByIdPayload: I_TOPICBYIDPAYLOADRESOLVERS = { | ||
/* Implement TopicByIdPayload union logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ript-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicByIdResult.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICBYIDRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicByIdResult: TOPICBYIDRESULTRESOLVERS = { | ||
import type { I_TOPICBYIDRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicByIdResult: I_TOPICBYIDRESULTRESOLVERS = { | ||
/* Implement TopicByIdResult resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...t-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicCreatePayload.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICCREATEPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicCreatePayload: TOPICCREATEPAYLOADRESOLVERS = { | ||
import type { I_TOPICCREATEPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicCreatePayload: I_TOPICCREATEPAYLOADRESOLVERS = { | ||
/* Implement TopicCreatePayload union logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...pt-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicCreateResult.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICCREATERESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicCreateResult: TOPICCREATERESULTRESOLVERS = { | ||
import type { I_TOPICCREATERESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicCreateResult: I_TOPICCREATERESULTRESOLVERS = { | ||
/* Implement TopicCreateResult resolver logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ipt-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicEditPayload.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICEDITPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicEditPayload: TOPICEDITPAYLOADRESOLVERS = { | ||
import type { I_TOPICEDITPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicEditPayload: I_TOPICEDITPAYLOADRESOLVERS = { | ||
/* Implement TopicEditPayload union logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ript-resolver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicEditResult.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICEDITRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicEditResult: TOPICEDITRESULTRESOLVERS = { | ||
import type { I_TOPICEDITRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicEditResult: I_TOPICEDITRESULTRESOLVERS = { | ||
/* Implement TopicEditResult resolver logic here */ | ||
}; |
9 changes: 5 additions & 4 deletions
9
...er-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicsCreatedByUserPayload.ts
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import type { TOPICSCREATEDBYUSERPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicsCreatedByUserPayload: TOPICSCREATEDBYUSERPAYLOADRESOLVERS = { | ||
/* Implement TopicsCreatedByUserPayload union logic here */ | ||
}; | ||
import type { I_TOPICSCREATEDBYUSERPAYLOADRESOLVERS } from './../../types.gen'; | ||
export const TopicsCreatedByUserPayload: I_TOPICSCREATEDBYUSERPAYLOADRESOLVERS = | ||
{ | ||
/* Implement TopicsCreatedByUserPayload union logic here */ | ||
}; |
4 changes: 2 additions & 2 deletions
4
...ver-files-e2e/src/test-config-overrides/modules/topic/rslvrs/TopicsCreatedByUserResult.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { TOPICSCREATEDBYUSERRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicsCreatedByUserResult: TOPICSCREATEDBYUSERRESULTRESOLVERS = { | ||
import type { I_TOPICSCREATEDBYUSERRESULTRESOLVERS } from './../../types.gen'; | ||
export const TopicsCreatedByUserResult: I_TOPICSCREATEDBYUSERRESULTRESOLVERS = { | ||
/* Implement TopicsCreatedByUserResult resolver logic here */ | ||
}; |
Oops, something went wrong.