@@ -3,7 +3,7 @@ import { EventProcessor, Integration } from '@sentry/types';
33import { fill , isThenable , loadModule , logger } from '@sentry/utils' ;
44
55type ApolloResolverGroup = {
6- [ key : string ] : ( ) => any ;
6+ [ key : string ] : ( ) => unknown ;
77} ;
88
99type ApolloModelResolvers = {
@@ -32,7 +32,7 @@ export class Apollo implements Integration {
3232 constructSchema : ( ) => unknown ;
3333 } ;
3434 } ;
35- } > ( ` apollo-server-core` ) ;
35+ } > ( ' apollo-server-core' ) ;
3636
3737 if ( ! pkg ) {
3838 logger . error ( 'Apollo Integration was unable to require apollo-server-core package.' ) ;
@@ -42,8 +42,8 @@ export class Apollo implements Integration {
4242 /**
4343 * Iterate over resolvers of the ApolloServer instance before schemas are constructed.
4444 */
45- fill ( pkg . ApolloServerBase . prototype , 'constructSchema' , function ( orig : ( ) => void ) {
46- return function ( this : { config : { resolvers : ApolloModelResolvers [ ] } } ) {
45+ fill ( pkg . ApolloServerBase . prototype , 'constructSchema' , function ( orig : ( ) => void ) {
46+ return function ( this : { config : { resolvers : ApolloModelResolvers [ ] } } ) {
4747 this . config . resolvers = this . config . resolvers . map ( model => {
4848 Object . keys ( model ) . forEach ( resolverGroupName => {
4949 Object . keys ( model [ resolverGroupName ] ) . forEach ( resolverName => {
@@ -73,13 +73,13 @@ function wrapResolver(
7373 resolverName : string ,
7474 getCurrentHub : ( ) => Hub ,
7575) : void {
76- fill ( model [ resolverGroupName ] , resolverName , function ( orig : ( ) => unknown | Promise < unknown > ) {
77- return function ( this : unknown , ...args : unknown [ ] ) {
76+ fill ( model [ resolverGroupName ] , resolverName , function ( orig : ( ) => unknown | Promise < unknown > ) {
77+ return function ( this : unknown , ...args : unknown [ ] ) {
7878 const scope = getCurrentHub ( ) . getScope ( ) ;
7979 const parentSpan = scope ?. getSpan ( ) ;
8080 const span = parentSpan ?. startChild ( {
8181 description : `${ resolverGroupName } .${ resolverName } ` ,
82- op : ` apollo` ,
82+ op : ' apollo' ,
8383 } ) ;
8484
8585 scope ?. setSpan ( span ) ;
0 commit comments