mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
3.8 KiB
JavaScript
1 line
3.8 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1594],{3905:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>m});var p=r(67294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);t&&(p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,p)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,p,n=function(e,t){if(null==e)return{};var r,p,n={},a=Object.keys(e);for(p=0;p<a.length;p++)r=a[p],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(p=0;p<a.length;p++)r=a[p],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var c=p.createContext({}),u=function(e){var t=p.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},l=function(e){var t=u(e.components);return p.createElement(c.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return p.createElement(p.Fragment,{},t)}},d=p.forwardRef((function(e,t){var r=e.components,n=e.mdxType,a=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=u(r),m=n,f=d["".concat(c,".").concat(m)]||d[m]||s[m]||a;return r?p.createElement(f,o(o({ref:t},l),{},{components:r})):p.createElement(f,o({ref:t},l))}));function m(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var a=r.length,o=new Array(a);o[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i.mdxType="string"==typeof e?e:n,o[1]=i;for(var u=2;u<a;u++)o[u]=r[u];return p.createElement.apply(null,o)}return p.createElement.apply(null,r)}d.displayName="MDXCreateElement"},528:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>s,frontMatter:()=>a,metadata:()=>i,toc:()=>u});var p=r(87462),n=(r(67294),r(3905));const a={sidebar_label:"Puppeteer.devices"},o="Puppeteer.devices property",i={unversionedId:"api/puppeteer.puppeteer.devices",id:"api/puppeteer.puppeteer.devices",title:"Puppeteer.devices property",description:"Warning: This API is now obsolete.",source:"@site/../docs/api/puppeteer.puppeteer.devices.md",sourceDirName:"api",slug:"/api/puppeteer.puppeteer.devices",permalink:"/next/api/puppeteer.puppeteer.devices",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Puppeteer.devices"},sidebar:"sidebar",previous:{title:"Puppeteer.customQueryHandlerNames",permalink:"/next/api/puppeteer.puppeteer.customqueryhandlernames"},next:{title:"Puppeteer.errors",permalink:"/next/api/puppeteer.puppeteer.errors"}},c={},u=[{value:"Example",id:"example",level:2}],l={toc:u};function s(e){let{components:t,...r}=e;return(0,n.kt)("wrapper",(0,p.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"puppeteerdevices-property"},"Puppeteer.devices 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 {get devices(): typeof devices;}\n")),(0,n.kt)("h2",{id:"example"},"Example"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-ts"},"import { devices } from 'puppeteer';\n")))}s.isMDXComponent=!0}}]); |