mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
/*! For license information please see 45cb92aa.b21f4586.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[31708],{38090:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>d,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var t=n(85893),a=n(11151);const o={sidebar_label:"Handler"},p="Handler type",i={id:"api/puppeteer.handler",title:"Handler type",description:"Signature:",source:"@site/versioned_docs/version-22.0.0/api/puppeteer.handler.md",sourceDirName:"api",slug:"/api/puppeteer.handler",permalink:"/api/puppeteer.handler",draft:!1,unlisted:!1,tags:[],version:"22.0.0",frontMatter:{sidebar_label:"Handler"},sidebar:"api",previous:{title:"HandleOr",permalink:"/api/puppeteer.handleor"},next:{title:"InnerParams",permalink:"/api/puppeteer.innerparams"}},s={},l=[{value:"Signature:",id:"signature",level:4}];function c(e){const r={code:"code",h1:"h1",h4:"h4",pre:"pre",...(0,a.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"handler-type",children:"Handler 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 Handler<T = unknown> = (event: T) => void;\n"})})]})}function d(e={}){const{wrapper:r}={...(0,a.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},75251:(e,r,n)=>{var t=n(67294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,n){var t,o={},l=null,c=null;for(t in void 0!==n&&(l=""+n),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(c=r.ref),r)p.call(r,t)&&!s.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:c,props:o,_owner:i.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:()=>i,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 i(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)}}}]); |