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: {
|
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,
|
||||||
|
|
|
||||||
|
|
@ -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?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue