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/use monaco: TypeScript fixups #18

Closed

Conversation

cshaver
Copy link
Collaborator

@cshaver cshaver commented Apr 27, 2020

To be merged into #17.

Doing some Sunday afternoon typescript fixes. I was curious about a couple @ts-ignores and got carried away, so I tried to resolve all the ones I could, plus a couple spelling edits and year updates along the way.

export namespace GraphiQL {
export type GetDefaultFieldNamesFn = (type: GraphQLType) => string[];
export type Maybe<T> = T | null | undefined;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whoops, I think I need to put this back?

@@ -5,118 +5,111 @@
* LICENSE file in the root directory of this source tree.
*/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

}
}
return result;
// const { insertions, result } = fillLeafs(
Copy link
Owner

Choose a reason for hiding this comment

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

ah yes! i think this is where we get the auto-expanding fields? trying to figure out how to re-enable that in monaco today

@acao acao changed the base branch from feat/use-monaco to feat/use-context-hooks April 30, 2020 04:31
@acao acao changed the base branch from feat/use-context-hooks to feat/use-monaco April 30, 2020 04:31
@acao
Copy link
Owner

acao commented Apr 30, 2020

@cshaver I can port over a good portion of these changes to the current RFC branch in a PR, there's some very useful improvements here!

@@ -11,13 +11,13 @@ import type {
Diagnostic,
CompletionItem as GraphQLCompletionItem,
} from 'graphql-language-service-types';
import type monaco from 'monaco-editor';
Copy link
Owner

Choose a reason for hiding this comment

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

it's available globally across the package now, so no need for this! i just need to add it to eslint globals

@acao
Copy link
Owner

acao commented May 13, 2020

@cshaver I think I captured most of these improvements, thank you!

@acao acao closed this May 13, 2020
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