function canDisplayGraphiQL(request, params) {
    // If `raw` false, GraphiQL mode is not enabled.
    // Allowed to show GraphiQL if not requested as raw and this request prefers HTML over JSON.
    return !params.raw && accepts_1.default(request).types(['json', 'html']) === 'html';
}
/**
 * Helper function to determine if GraphiQL can be displayed.
 */
Helper function to determine if GraphiQL can be displayed.
Helper function to determine if GraphiQL can be displayed .
function canDisplayGraphiQL(request, params) {
    return !params.raw && accepts_1.default(request).types(['json', 'html']) === 'html';
}
function canDisplayGraphiQL ( request , params ) { return ! params . raw && accepts_1 . default ( request ) . types ( [ 'json' , 'html' ] ) === 'html' ; }
Helper function to determine if GraphiQL can be displayed.
Helper function to determine if GraphiQL can be displayed .
// If `raw` false, GraphiQL mode is not enabled. // Allowed to show GraphiQL if not requested as raw and this request prefers HTML over JSON.