fix(protocol): annotate file buffer as binary (#4272)

This commit is contained in:
Pavel Feldman 2020-10-28 10:55:20 -07:00 committed by GitHub
parent 05278b86fc
commit ece84eccd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -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?

View file

@ -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),