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 338c18b8.f2e2b5a7.js.LICENSE.txt */
|
||
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[14307],{10355:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>p,default:()=>u,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/../docs/api/puppeteer.handler.md",sourceDirName:"api",slug:"/api/puppeteer.handler",permalink:"/next/api/puppeteer.handler",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Handler"},sidebar:"api",previous:{title:"HandleOr",permalink:"/next/api/puppeteer.handleor"},next:{title:"InnerParams",permalink:"/next/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 u(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)}}}]);
|