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