youtubei.js / Types / PlatformShim
Interface: PlatformShim
Properties
Cache
Cache:
ICacheConstructor
Defined in
CustomEvent()
CustomEvent: <
T
>(type
,eventInitDict
?) =>CustomEvent
<T
>
Parameters
• type: string
• eventInitDict?: CustomEventInit
<T
>
Returns
CustomEvent
<T
>
prototype
prototype:
CustomEvent
<any
>
Defined in
fetch()
fetch: (
input
,init
?) =>Promise
<Response
>
Parameters
• input: URL
| RequestInfo
• init?: RequestInit
Returns
Promise
<Response
>
Defined in
File()
File: (
fileBits
,fileName
,options
?) =>File
Parameters
• fileBits: BlobPart
[]
• fileName: string
• options?: FilePropertyBag
Returns
File
prototype
prototype:
File
Defined in
FormData()
FormData: (
form
?,submitter
?) =>FormData
Parameters
• form?: HTMLFormElement
• submitter?: null
| HTMLElement
Returns
FormData
prototype
prototype:
FormData
Defined in
Headers()
Headers: (
init
?) =>Headers
Parameters
• init?: HeadersInit
Returns
Headers
prototype
prototype:
Headers
Defined in
info
info:
object
bugs_url
bugs_url:
string
repo_url
repo_url:
string
version
version:
string
Defined in
ReadableStream()
ReadableStream: (
underlyingSource
,strategy
?) =>ReadableStream
<Uint8Array
><R
>(underlyingSource
,strategy
?) =>ReadableStream
<R
><R
>(underlyingSource
?,strategy
?) =>ReadableStream
<R
>
Parameters
• underlyingSource: UnderlyingByteSource
• strategy?
• strategy.highWaterMark?: number
Returns
ReadableStream
<Uint8Array
>
Parameters
• underlyingSource: UnderlyingDefaultSource
<R
>
• strategy?: QueuingStrategy
<R
>
Returns
ReadableStream
<R
>
Parameters
• underlyingSource?: UnderlyingSource
<R
>
• strategy?: QueuingStrategy
<R
>
Returns
ReadableStream
<R
>
prototype
prototype:
ReadableStream
<any
>
Defined in
Request()
Request: (
input
,init
?) =>Request
Parameters
• input: URL
| RequestInfo
• init?: RequestInit
Returns
Request
prototype
prototype:
Request
Defined in
Response()
Response: (
body
?,init
?) =>Response
Parameters
• body?: null
| BodyInit
• init?: ResponseInit
Returns
Response
prototype
prototype:
Response
error()
Returns
Response
json()
Parameters
• data: any
• init?: ResponseInit
Returns
Response
redirect()
Parameters
• url: string
| URL
• status?: number
Returns
Response
Defined in
runtime
runtime:
Runtime
Defined in
server
server:
boolean
Defined in
Methods
eval()
eval(
code
,env
):unknown
Parameters
• code: string
• env: Record
<string
, VMPrimative
>
Returns
unknown
Defined in
sha1Hash()
sha1Hash(
data
):Promise
<string
>
Parameters
• data: string
Returns
Promise
<string
>
Defined in
uuidv4()
uuidv4():
string
Returns
string