Js externs for template literals

How should I write externs for js things like this?

import gql from 'graphql-tag';

const query = gql`
  {
    user(id: 5) {
      firstName
      lastName
    }
  }
`
1 Like

Something like that:

function gql(strings:Array<String>, ?params:haxe.extern.Rest<Dynamic>)

See MDN documentation on the subject: Template literals

1 Like

Thank you)