@@ -552,6 +552,15 @@ export class Inspector extends EventEmitter {
552552 } ) ;
553553 }
554554
555+ // Function overloads for getMatchedStyles
556+ async getMatchedStyles (
557+ element : InspectorElement ,
558+ options : MatchedStylesOptions & { raw : true } ,
559+ ) : Promise < GetMatchedStylesForNodeResponse > ;
560+ async getMatchedStyles (
561+ element : InspectorElement ,
562+ options ?: MatchedStylesOptions & { raw ?: false } ,
563+ ) : Promise < ParsedCSS > ;
555564 async getMatchedStyles (
556565 element : InspectorElement ,
557566 options : MatchedStylesOptions = { } ,
@@ -572,6 +581,15 @@ export class Inspector extends EventEmitter {
572581 return raw ? ret : parseGetMatchedStylesForNodeResponse ( ret , parseOptions ) ;
573582 }
574583
584+ // Function overloads for getComputedStyle
585+ async getComputedStyle (
586+ element : InspectorElement ,
587+ options : ComputedStyleOptions & { raw : true } ,
588+ ) : Promise < GetComputedStyleForNodeResponse > ;
589+ async getComputedStyle (
590+ element : InspectorElement ,
591+ options ?: ComputedStyleOptions & { raw ?: false } ,
592+ ) : Promise < Record < string , string > > ;
575593 async getComputedStyle (
576594 element : InspectorElement ,
577595 options : ComputedStyleOptions = { } ,
0 commit comments