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: { files: {
name: string, name: string,
mimeType: string, mimeType: string,
buffer: string, buffer: Binary,
}[], }[],
timeout?: number, timeout?: number,
noWaitAfter?: boolean, noWaitAfter?: boolean,
@ -1982,7 +1982,7 @@ export type ElementHandleSetInputFilesParams = {
files: { files: {
name: string, name: string,
mimeType: string, mimeType: string,
buffer: string, buffer: Binary,
}[], }[],
timeout?: number, timeout?: number,
noWaitAfter?: boolean, noWaitAfter?: boolean,

View file

@ -1243,7 +1243,7 @@ Frame:
properties: properties:
name: string name: string
mimeType: string mimeType: string
buffer: string buffer: binary
timeout: number? timeout: number?
noWaitAfter: boolean? noWaitAfter: boolean?
@ -1660,7 +1660,7 @@ ElementHandle:
properties: properties:
name: string name: string
mimeType: string mimeType: string
buffer: string buffer: binary
timeout: number? timeout: number?
noWaitAfter: boolean? noWaitAfter: boolean?

View file

@ -592,7 +592,7 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
files: tArray(tObject({ files: tArray(tObject({
name: tString, name: tString,
mimeType: tString, mimeType: tString,
buffer: tString, buffer: tBinary,
})), })),
timeout: tOptional(tNumber), timeout: tOptional(tNumber),
noWaitAfter: tOptional(tBoolean), noWaitAfter: tOptional(tBoolean),
@ -781,7 +781,7 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
files: tArray(tObject({ files: tArray(tObject({
name: tString, name: tString,
mimeType: tString, mimeType: tString,
buffer: tString, buffer: tBinary,
})), })),
timeout: tOptional(tNumber), timeout: tOptional(tNumber),
noWaitAfter: tOptional(tBoolean), noWaitAfter: tOptional(tBoolean),