puppeteer/assets/js/e669d354.e7cb4851.js
release-please[bot] cc95c085a2 deploy: 1014abc087
2023-11-29 13:34:30 +00:00

2 lines
2.7 KiB
JavaScript

/*! For license information please see e669d354.e7cb4851.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[86150],{92578:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>p,default:()=>c,frontMatter:()=>a,metadata:()=>s,toc:()=>l});var r=t(85893),o=t(11151);const a={sidebar_label:"HandleFor"},p="HandleFor type",s={id:"api/puppeteer.handlefor",title:"HandleFor type",description:"Signature:",source:"@site/../docs/api/puppeteer.handlefor.md",sourceDirName:"api",slug:"/api/puppeteer.handlefor",permalink:"/next/api/puppeteer.handlefor",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"HandleFor"},sidebar:"api",previous:{title:"GoToOptions",permalink:"/next/api/puppeteer.gotooptions"},next:{title:"HandleOr",permalink:"/next/api/puppeteer.handleor"}},i={},l=[{value:"Signature:",id:"signature",level:4}];function d(e){const n={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"handlefor-type",children:"HandleFor type"}),"\n",(0,r.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-typescript",children:"export type HandleFor<T> = T extends Node ? ElementHandle<T> : JSHandle<T>;\n"})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"References:"})," ",(0,r.jsx)(n.a,{href:"/next/api/puppeteer.elementhandle",children:"ElementHandle"}),", ",(0,r.jsx)(n.a,{href:"/next/api/puppeteer.jshandle",children:"JSHandle"})]})]})}function c(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},75251:(e,n,t)=>{var r=t(67294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,n,t){var r,a={},l=null,d=null;for(r in void 0!==t&&(l=""+t),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)p.call(n,r)&&!i.hasOwnProperty(r)&&(a[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===a[r]&&(a[r]=n[r]);return{$$typeof:o,type:e,key:l,ref:d,props:a,_owner:s.current}}n.Fragment=a,n.jsx=l,n.jsxs=l},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>p});var r=t(67294);const o={},a=r.createContext(o);function p(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:p(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]);