Skip to content

Commit

Permalink
fix(protocol): annotate file buffer as binary (#4272)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored Oct 28, 2020
1 parent 05278b8 commit ece84ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/protocol/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ export type FrameSetInputFilesParams = {
files: {
name: string,
mimeType: string,
buffer: string,
buffer: Binary,
}[],
timeout?: number,
noWaitAfter?: boolean,
Expand Down Expand Up @@ -1982,7 +1982,7 @@ export type ElementHandleSetInputFilesParams = {
files: {
name: string,
mimeType: string,
buffer: string,
buffer: Binary,
}[],
timeout?: number,
noWaitAfter?: boolean,
Expand Down
4 changes: 2 additions & 2 deletions src/protocol/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ Frame:
properties:
name: string
mimeType: string
buffer: string
buffer: binary
timeout: number?
noWaitAfter: boolean?

Expand Down Expand Up @@ -1660,7 +1660,7 @@ ElementHandle:
properties:
name: string
mimeType: string
buffer: string
buffer: binary
timeout: number?
noWaitAfter: boolean?

Expand Down
4 changes: 2 additions & 2 deletions src/protocol/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit ece84ec

Please sign in to comment.