Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
Kind.DIRECTIVE_DEFINITION
constant rather than string literal.
This is just for stability. I know we don't do it everywhere right now, but we should! This also removes the extra function, but I don't think we're really getting too much from that now, or later. The constant comparison should be the ideal way of doing this, and TypeScript should be able to do the type narrowing on its own.
- Loading branch information