How should I write externs for js things like this?
import gql from 'graphql-tag';
const query = gql`
{
user(id: 5) {
firstName
lastName
}
}
`
How should I write externs for js things like this?
import gql from 'graphql-tag';
const query = gql`
{
user(id: 5) {
firstName
lastName
}
}
`
Something like that:
function gql(strings:Array<String>, ?params:haxe.extern.Rest<Dynamic>)
See MDN documentation on the subject: Template literals
Thank you)
© 2018-2020 Haxe Foundation - Powered by Discourse