mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
/*! For license information please see c7c6bf8b.969c074d.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[73191],{77102:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>a});var s=t(85893),n=t(11151);const i={sidebar_label:"InstallOptions"},o="InstallOptions interface",l={id:"browsers-api/browsers.installoptions",title:"InstallOptions interface",description:"Signature:",source:"@site/../docs/browsers-api/browsers.installoptions.md",sourceDirName:"browsers-api",slug:"/browsers-api/browsers.installoptions",permalink:"/next/browsers-api/browsers.installoptions",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"InstallOptions"},sidebar:"browsersApi",previous:{title:"InstalledBrowser",permalink:"/next/browsers-api/browsers.installedbrowser"},next:{title:"LaunchOptions",permalink:"/next/browsers-api/browsers.launchoptions"}},d={},a=[{value:"Signature:",id:"signature",level:4},{value:"Properties",id:"properties",level:2}];function c(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h1,{id:"installoptions-interface",children:"InstallOptions interface"}),"\n",(0,s.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typescript",children:"export interface InstallOptions\n"})}),"\n",(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{children:"Property"}),(0,s.jsx)(r.th,{children:"Modifiers"}),(0,s.jsx)(r.th,{children:"Type"}),(0,s.jsx)(r.th,{children:"Description"}),(0,s.jsx)(r.th,{children:"Default"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"baseUrl"}),(0,s.jsx)(r.td,{children:(0,s.jsx)("code",{children:"optional"})}),(0,s.jsx)(r.td,{children:"string"}),(0,s.jsx)(r.td,{children:"Determines the host that will be used for downloading."}),(0,s.jsxs)(r.td,{children:[(0,s.jsx)("p",{children:"Either"}),(0,s.jsxs)("p",{children:["- ",(0,s.jsx)(r.a,{href:"https://storage.googleapis.com/chrome-for-testing-public",children:"https://storage.googleapis.com/chrome-for-testing-public"})," or - ",(0,s.jsx)(r.a,{href:"https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central",children:"https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central"})]})]})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"browser"}),(0,s.jsx)(r.td,{}),(0,s.jsx)(r.td,{children:(0,s.jsx)(r.a,{href:"/next/browsers-api/browsers.browser",children:"Browser"})}),(0,s.jsx)(r.td,{children:"Determines which browser to install."}),(0,s.jsx)(r.td,{})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"buildId"}),(0,s.jsx)(r.td,{}),(0,s.jsx)(r.td,{children:"string"}),(0,s.jsx)(r.td,{children:"Determines which buildId to download. BuildId should uniquely identify binaries and they are used for caching."}),(0,s.jsx)(r.td,{})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"cacheDir"}),(0,s.jsx)(r.td,{}),(0,s.jsx)(r.td,{children:"string"}),(0,s.jsx)(r.td,{children:"Determines the path to download browsers to."}),(0,s.jsx)(r.td,{})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"downloadProgressCallback"}),(0,s.jsx)(r.td,{children:(0,s.jsx)("code",{children:"optional"})}),(0,s.jsx)(r.td,{children:"(downloadedBytes: number, totalBytes: number) => void"}),(0,s.jsx)(r.td,{children:"Provides information about the progress of the download."}),(0,s.jsx)(r.td,{})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"platform"}),(0,s.jsx)(r.td,{children:(0,s.jsx)("code",{children:"optional"})}),(0,s.jsx)(r.td,{children:(0,s.jsx)(r.a,{href:"/next/browsers-api/browsers.browserplatform",children:"BrowserPlatform"})}),(0,s.jsx)(r.td,{children:"Determines which platform the browser will be suited for."}),(0,s.jsx)(r.td,{children:(0,s.jsx)(r.strong,{children:"Auto-detected."})})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"unpack"}),(0,s.jsx)(r.td,{children:(0,s.jsx)("code",{children:"optional"})}),(0,s.jsx)(r.td,{children:"boolean"}),(0,s.jsx)(r.td,{children:"Whether to unpack and install browser archives."}),(0,s.jsx)(r.td,{children:(0,s.jsx)("code",{children:"true"})})]})]})]})]})}function h(e={}){const{wrapper:r}={...(0,n.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},75251:(e,r,t)=>{var s=t(67294),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,t){var s,i={},a=null,c=null;for(s in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(c=r.ref),r)o.call(r,s)&&!d.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===i[s]&&(i[s]=r[s]);return{$$typeof:n,type:e,key:a,ref:c,props:i,_owner:l.current}}r.Fragment=i,r.jsx=a,r.jsxs=a},85893:(e,r,t)=>{e.exports=t(75251)},11151:(e,r,t)=>{t.d(r,{Z:()=>l,a:()=>o});var s=t(67294);const n={},i=s.createContext(n);function o(e){const r=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),s.createElement(i.Provider,{value:r},e.children)}}}]); |