puppeteer/assets/js/67a1e1ef.5690ab4b.js
release-please[bot] d3364cba40 deploy: af6eba4bea
2023-12-15 12:13:30 +00:00

2 lines
4.0 KiB
JavaScript

/*! For license information please see 67a1e1ef.5690ab4b.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2218],{62459:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>l,contentTitle:()=>a,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>i});var n=t(85893),r=t(11151);const o={sidebar_label:"ConsoleMessage.(constructor)"},a="ConsoleMessage.(constructor)",c={id:"api/puppeteer.consolemessage._constructor_",title:"ConsoleMessage.(constructor)",description:"Constructs a new instance of the ConsoleMessage class",source:"@site/versioned_docs/version-21.6.1/api/puppeteer.consolemessage._constructor_.md",sourceDirName:"api",slug:"/api/puppeteer.consolemessage._constructor_",permalink:"/api/puppeteer.consolemessage._constructor_",draft:!1,unlisted:!1,tags:[],version:"21.6.1",frontMatter:{sidebar_label:"ConsoleMessage.(constructor)"},sidebar:"api",previous:{title:"ConsoleMessage",permalink:"/api/puppeteer.consolemessage"},next:{title:"ConsoleMessage.args",permalink:"/api/puppeteer.consolemessage.args"}},l={},i=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2}];function d(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{id:"consolemessageconstructor",children:"ConsoleMessage.(constructor)"}),"\n",(0,n.jsxs)(s.p,{children:["Constructs a new instance of the ",(0,n.jsx)(s.code,{children:"ConsoleMessage"})," class"]}),"\n",(0,n.jsx)(s.h4,{id:"signature",children:"Signature:"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-typescript",children:"class ConsoleMessage {\n constructor(\n type: ConsoleMessageType,\n text: string,\n args: JSHandle[],\n stackTraceLocations: ConsoleMessageLocation[]\n );\n}\n"})}),"\n",(0,n.jsx)(s.h2,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(s.table,{children:[(0,n.jsx)(s.thead,{children:(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.th,{children:"Parameter"}),(0,n.jsx)(s.th,{children:"Type"}),(0,n.jsx)(s.th,{children:"Description"})]})}),(0,n.jsxs)(s.tbody,{children:[(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:"type"}),(0,n.jsx)(s.td,{children:(0,n.jsx)(s.a,{href:"/api/puppeteer.consolemessagetype",children:"ConsoleMessageType"})}),(0,n.jsx)(s.td,{})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:"text"}),(0,n.jsx)(s.td,{children:"string"}),(0,n.jsx)(s.td,{})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:"args"}),(0,n.jsxs)(s.td,{children:[(0,n.jsx)(s.a,{href:"/api/puppeteer.jshandle",children:"JSHandle"}),"[]"]}),(0,n.jsx)(s.td,{})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:"stackTraceLocations"}),(0,n.jsxs)(s.td,{children:[(0,n.jsx)(s.a,{href:"/api/puppeteer.consolemessagelocation",children:"ConsoleMessageLocation"}),"[]"]}),(0,n.jsx)(s.td,{})]})]})]})]})}function p(e={}){const{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},75251:(e,s,t)=>{var n=t(67294),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(e,s,t){var n,o={},i=null,d=null;for(n in void 0!==t&&(i=""+t),void 0!==s.key&&(i=""+s.key),void 0!==s.ref&&(d=s.ref),s)a.call(s,n)&&!l.hasOwnProperty(n)&&(o[n]=s[n]);if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:r,type:e,key:i,ref:d,props:o,_owner:c.current}}s.Fragment=o,s.jsx=i,s.jsxs=i},85893:(e,s,t)=>{e.exports=t(75251)},11151:(e,s,t)=>{t.d(s,{Z:()=>c,a:()=>a});var n=t(67294);const r={},o=n.createContext(r);function a(e){const s=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),n.createElement(o.Provider,{value:s},e.children)}}}]);