puppeteer/assets/js/e588150c.ec1cdd95.js
release-please[bot] 755b087b6f deploy: 21cc961df9
2022-08-19 08:58:11 +00:00

1 line
3.8 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[27401],{3905:(e,r,t)=>{t.d(r,{Zo:()=>s,kt:()=>f});var p=t(67294);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);r&&(p=p.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,p)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){n(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function i(e,r){if(null==e)return{};var t,p,n=function(e,r){if(null==e)return{};var t,p,n={},o=Object.keys(e);for(p=0;p<o.length;p++)t=o[p],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(p=0;p<o.length;p++)t=o[p],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var u=p.createContext({}),l=function(e){var r=p.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):a(a({},r),e)),t},s=function(e){var r=l(e.components);return p.createElement(u.Provider,{value:r},e.children)},c={inlineCode:"code",wrapper:function(e){var r=e.children;return p.createElement(p.Fragment,{},r)}},m=p.forwardRef((function(e,r){var t=e.components,n=e.mdxType,o=e.originalType,u=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),m=l(t),f=n,y=m["".concat(u,".").concat(f)]||m[f]||c[f]||o;return t?p.createElement(y,a(a({ref:r},s),{},{components:t})):p.createElement(y,a({ref:r},s))}));function f(e,r){var t=arguments,n=r&&r.mdxType;if("string"==typeof e||n){var o=t.length,a=new Array(o);a[0]=m;var i={};for(var u in r)hasOwnProperty.call(r,u)&&(i[u]=r[u]);i.originalType=e,i.mdxType="string"==typeof e?e:n,a[1]=i;for(var l=2;l<o;l++)a[l]=t[l];return p.createElement.apply(null,a)}return p.createElement.apply(null,t)}m.displayName="MDXCreateElement"},16397:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>a,default:()=>c,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var p=t(87462),n=(t(67294),t(3905));const o={sidebar_label:"Puppeteer.errors"},a="Puppeteer.errors property",i={unversionedId:"api/puppeteer.puppeteer.errors",id:"version-16.2.0/api/puppeteer.puppeteer.errors",title:"Puppeteer.errors property",description:"Warning: This API is now obsolete.",source:"@site/versioned_docs/version-16.2.0/api/puppeteer.puppeteer.errors.md",sourceDirName:"api",slug:"/api/puppeteer.puppeteer.errors",permalink:"/api/puppeteer.puppeteer.errors",draft:!1,tags:[],version:"16.2.0",frontMatter:{sidebar_label:"Puppeteer.errors"},sidebar:"sidebar",previous:{title:"Puppeteer.devices",permalink:"/api/puppeteer.puppeteer.devices"},next:{title:"Puppeteer",permalink:"/api/puppeteer.puppeteer"}},u={},l=[{value:"Example",id:"example",level:2}],s={toc:l};function c(e){let{components:r,...t}=e;return(0,n.kt)("wrapper",(0,p.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"puppeteererrors-property"},"Puppeteer.errors property"),(0,n.kt)("blockquote",null,(0,n.kt)("p",{parentName:"blockquote"},"Warning: This API is now obsolete."),(0,n.kt)("p",{parentName:"blockquote"},"Import directly puppeteer.")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Signature:")),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-typescript"},"class Puppeteer {\n get errors(): typeof errors;\n}\n")),(0,n.kt)("h2",{id:"example"},"Example"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-ts"},"import {errors} from 'puppeteer';\n")))}c.isMDXComponent=!0}}]);