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

feat(core): introduce GraphQL importer #233

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ostridm
Copy link
Contributor

@ostridm ostridm commented Mar 25, 2024

closes #232

@ostridm ostridm added the Type: enhancement New feature or request. label Mar 25, 2024
@ostridm ostridm self-assigned this Mar 25, 2024
Copy link

codeclimate bot commented Mar 25, 2024

Code Climate has analyzed commit 585f7d2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 97.1% (50% is the threshold).

This pull request will bring the total coverage in the repository to 92.2% (0.1% change).

View more on Code Climate.

@ostridm ostridm requested review from derevnjuk and removed request for derevnjuk March 25, 2024 13:34
@ostridm ostridm marked this pull request as draft March 28, 2024 09:31
@ostridm ostridm force-pushed the feat_#232/introduce-graphql-importer branch 2 times, most recently from 1d686be to 3c18b91 Compare March 28, 2024 13:30
@ostridm ostridm force-pushed the feat_#232/introduce-graphql-importer branch from 3c18b91 to 4d8c69c Compare March 28, 2024 13:31
@ostridm ostridm marked this pull request as ready for review March 28, 2024 13:38
@ostridm ostridm requested a review from derevnjuk March 29, 2024 10:43
Comment on lines +1 to +3
export const isArrayOfStrings = (data: unknown) => !!data && Array.isArray(data)
? data.every(item => typeof item === 'string')
: false;
Copy link
Member

@derevnjuk derevnjuk Aug 21, 2024

Choose a reason for hiding this comment

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

Suggested change
export const isArrayOfStrings = (data: unknown) => !!data && Array.isArray(data)
? data.every(item => typeof item === 'string')
: false;
export const isArrayOfStrings = <T extends string>(data: unknown): data is T[] => Array.isArray(data) && data.every(item => typeof item === 'string');

Copy link
Member

Choose a reason for hiding this comment

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

This utility func is only used once. Do we really need it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce GraphQL Importer
2 participants