mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
/*! For license information please see 94069bdb.1091ec41.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[95796],{35422:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>i,contentTitle:()=>p,default:()=>c,frontMatter:()=>o,metadata:()=>s,toc:()=>l});var t=n(85893),a=n(11151);const o={sidebar_label:"HandleOr"},p="HandleOr type",s={id:"api/puppeteer.handleor",title:"HandleOr type",description:"Signature:",source:"@site/versioned_docs/version-21.6.0/api/puppeteer.handleor.md",sourceDirName:"api",slug:"/api/puppeteer.handleor",permalink:"/api/puppeteer.handleor",draft:!1,unlisted:!1,tags:[],version:"21.6.0",frontMatter:{sidebar_label:"HandleOr"},sidebar:"api",previous:{title:"HandleFor",permalink:"/api/puppeteer.handlefor"},next:{title:"Handler",permalink:"/api/puppeteer.handler"}},i={},l=[{value:"Signature:",id:"signature",level:4}];function d(e){const r={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,a.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"handleor-type",children:"HandleOr type"}),"\n",(0,t.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-typescript",children:"export type HandleOr<T> = HandleFor<T> | JSHandle<T> | T;\n"})}),"\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.strong,{children:"References:"})," ",(0,t.jsx)(r.a,{href:"/api/puppeteer.handlefor",children:"HandleFor"}),", ",(0,t.jsx)(r.a,{href:"/api/puppeteer.jshandle",children:"JSHandle"})]})]})}function c(e={}){const{wrapper:r}={...(0,a.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},75251:(e,r,n)=>{var t=n(67294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,n){var t,o={},l=null,d=null;for(t in void 0!==n&&(l=""+n),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(d=r.ref),r)p.call(r,t)&&!i.hasOwnProperty(t)&&(o[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===o[t]&&(o[t]=r[t]);return{$$typeof:a,type:e,key:l,ref:d,props:o,_owner:s.current}}r.Fragment=o,r.jsx=l,r.jsxs=l},85893:(e,r,n)=>{e.exports=n(75251)},11151:(e,r,n)=>{n.d(r,{Z:()=>s,a:()=>p});var t=n(67294);const a={},o=t.createContext(a);function p(e){const r=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function s(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:p(e.components),t.createElement(o.Provider,{value:r},e.children)}}}]); |