puppeteer/assets/js/deffbd30.84c16095.js

1 line
3.5 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[47959],{3905:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>f});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function l(e,r){if(null==e)return{};var t,n,p=function(e,r){if(null==e)return{};var t,n,p={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,a=e.originalType,i=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),d=c(t),f=p,y=d["".concat(i,".").concat(f)]||d[f]||s[f]||a;return t?n.createElement(y,o(o({ref:r},u),{},{components:t})):n.createElement(y,o({ref:r},u))}));function f(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var a=t.length,o=new Array(a);o[0]=d;var l={};for(var i in r)hasOwnProperty.call(r,i)&&(l[i]=r[i]);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 n.createElement.apply(null,o)}return n.createElement.apply(null,t)}d.displayName="MDXCreateElement"},45347:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>i,contentTitle:()=>o,default:()=>s,frontMatter:()=>a,metadata:()=>l,toc:()=>c});var n=t(87462),p=(t(67294),t(3905));const a={},o="HandleOr type",l={unversionedId:"api/puppeteer.handleor",id:"api/puppeteer.handleor",title:"HandleOr type",description:"Signature:",source:"@site/../docs/api/puppeteer.handleor.md",sourceDirName:"api",slug:"/api/puppeteer.handleor",permalink:"/puppeteer/api/puppeteer.handleor",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"sidebar",previous:{title:"HandleFor type",permalink:"/puppeteer/api/puppeteer.handlefor"},next:{title:"Handler type",permalink:"/puppeteer/api/puppeteer.handler"}},i={},c=[],u={toc:c};function s(e){let{components:r,...t}=e;return(0,p.kt)("wrapper",(0,n.Z)({},u,t,{components:r,mdxType:"MDXLayout"}),(0,p.kt)("h1",{id:"handleor-type"},"HandleOr type"),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"Signature:")),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"export declare type HandleOr<T> = HandleFor<T> | JSHandle<T> | T;\n")),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"References:")," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/api/puppeteer.handlefor"},"HandleFor"),", ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/api/puppeteer.jshandle"},"JSHandle")))}s.isMDXComponent=!0}}]);