-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
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. |
1d686be
to
3c18b91
Compare
3c18b91
to
4d8c69c
Compare
export const isArrayOfStrings = (data: unknown) => !!data && Array.isArray(data) | ||
? data.every(item => typeof item === 'string') | ||
: false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'); |
There was a problem hiding this comment.
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?
closes #232