puppeteer/assets/js/3aa94676.131243ff.js
2021-10-07 15:21:45 +00:00

1 line
4.0 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[33036],{3905:function(e,n,t){t.d(n,{Zo:function(){return i},kt:function(){return s}});var r=t(67294);function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,p=function(e,n){if(null==e)return{};var t,r,p={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(p[t]=e[t]);return p}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var u=r.createContext({}),c=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},i=function(e){var n=c(e.components);return r.createElement(u.Provider,{value:n},e.children)},m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,p=e.mdxType,a=e.originalType,u=e.parentName,i=l(e,["components","mdxType","originalType","parentName"]),d=c(t),s=p,f=d["".concat(u,".").concat(s)]||d[s]||m[s]||a;return t?r.createElement(f,o(o({ref:n},i),{},{components:t})):r.createElement(f,o({ref:n},i))}));function s(e,n){var t=arguments,p=n&&n.mdxType;if("string"==typeof e||p){var a=t.length,o=new Array(a);o[0]=d;var l={};for(var u in n)hasOwnProperty.call(n,u)&&(l[u]=n[u]);l.originalType=e,l.mdxType="string"==typeof e?e:p,o[1]=l;for(var c=2;c<a;c++)o[c]=t[c];return r.createElement.apply(null,o)}return r.createElement.apply(null,t)}d.displayName="MDXCreateElement"},38270:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return l},contentTitle:function(){return u},metadata:function(){return c},toc:function(){return i},default:function(){return d}});var r=t(87462),p=t(63366),a=(t(67294),t(3905)),o=["components"],l={},u=void 0,c={unversionedId:"puppeteer.unwrapelementhandle",id:"version-10.1.0/puppeteer.unwrapelementhandle",isDocsHomePage:!1,title:"puppeteer.unwrapelementhandle",description:"Home &gt; puppeteer &gt; UnwrapElementHandle",source:"@site/versioned_docs/version-10.1.0/puppeteer.unwrapelementhandle.md",sourceDirName:".",slug:"/puppeteer.unwrapelementhandle",permalink:"/puppeteer/docs/puppeteer.unwrapelementhandle",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.1.0/puppeteer.unwrapelementhandle.md",version:"10.1.0",frontMatter:{}},i=[{value:"UnwrapElementHandle type",id:"unwrapelementhandle-type",children:[]}],m={toc:i};function d(e){var n=e.components,t=(0,p.Z)(e,o);return(0,a.kt)("wrapper",(0,r.Z)({},m,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("p",null,(0,a.kt)("a",{parentName:"p",href:"/puppeteer/docs/index"},"Home")," ",">"," ",(0,a.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer"},"puppeteer")," ",">"," ",(0,a.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.unwrapelementhandle"},"UnwrapElementHandle")),(0,a.kt)("h2",{id:"unwrapelementhandle-type"},"UnwrapElementHandle type"),(0,a.kt)("p",null,"Unwraps a DOM element out of an ElementHandle instance"),(0,a.kt)("b",null,"Signature:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-typescript"},"export declare type UnwrapElementHandle<X> = X extends ElementHandle<infer E> ? E : X;\n")),(0,a.kt)("b",null,"References:")," [ElementHandle](/puppeteer/docs/puppeteer.elementhandle)")}d.isMDXComponent=!0}}]);