fix(protocol): annotate file buffer as binary (#4272)
This commit is contained in:
parent
05278b86fc
commit
ece84eccd7
|
|
@ -1490,7 +1490,7 @@ export type FrameSetInputFilesParams = {
|
|||
files: {
|
||||
name: string,
|
||||
mimeType: string,
|
||||
buffer: string,
|
||||
buffer: Binary,
|
||||
}[],
|
||||
timeout?: number,
|
||||
noWaitAfter?: boolean,
|
||||
|
|
@ -1982,7 +1982,7 @@ export type ElementHandleSetInputFilesParams = {
|
|||
files: {
|
||||
name: string,
|
||||
mimeType: string,
|
||||
buffer: string,
|
||||
buffer: Binary,
|
||||
}[],
|
||||
timeout?: number,
|
||||
noWaitAfter?: boolean,
|
||||
|
|
|
|||
|
|
@ -1243,7 +1243,7 @@ Frame:
|
|||
properties:
|
||||
name: string
|
||||
mimeType: string
|
||||
buffer: string
|
||||
buffer: binary
|
||||
timeout: number?
|
||||
noWaitAfter: boolean?
|
||||
|
||||
|
|
@ -1660,7 +1660,7 @@ ElementHandle:
|
|||
properties:
|
||||
name: string
|
||||
mimeType: string
|
||||
buffer: string
|
||||
buffer: binary
|
||||
timeout: number?
|
||||
noWaitAfter: boolean?
|
||||
|
||||
|
|
|
|||
|
|
@ -592,7 +592,7 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
|
|||
files: tArray(tObject({
|
||||
name: tString,
|
||||
mimeType: tString,
|
||||
buffer: tString,
|
||||
buffer: tBinary,
|
||||
})),
|
||||
timeout: tOptional(tNumber),
|
||||
noWaitAfter: tOptional(tBoolean),
|
||||
|
|
@ -781,7 +781,7 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
|
|||
files: tArray(tObject({
|
||||
name: tString,
|
||||
mimeType: tString,
|
||||
buffer: tString,
|
||||
buffer: tBinary,
|
||||
})),
|
||||
timeout: tOptional(tNumber),
|
||||
noWaitAfter: tOptional(tBoolean),
|
||||
|
|
|
|||
Loading…
Reference in a new issue