Fix type checks.
This commit is contained in:
parent
d9cffa1878
commit
e309282ff7
|
@ -4,11 +4,6 @@ import { ReadStream } from "fs"
|
||||||
|
|
||||||
type Headers = Record<string, string | string[] | undefined>
|
type Headers = Record<string, string | string[] | undefined>
|
||||||
|
|
||||||
export interface TestAPIOpts {
|
|
||||||
headers?: Headers
|
|
||||||
status?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AttachedFile {
|
export interface AttachedFile {
|
||||||
name: string
|
name: string
|
||||||
file: Buffer | ReadStream | string
|
file: Buffer | ReadStream | string
|
||||||
|
|
|
@ -22,7 +22,10 @@ export class TableAPI extends TestAPI {
|
||||||
return await this._get<Table[]>("/api/tables", { expectations })
|
return await this._get<Table[]>("/api/tables", { expectations })
|
||||||
}
|
}
|
||||||
|
|
||||||
get = async (tableId: string, expectations: Expectations): Promise<Table> => {
|
get = async (
|
||||||
|
tableId: string,
|
||||||
|
expectations?: Expectations
|
||||||
|
): Promise<Table> => {
|
||||||
return await this._get<Table>(`/api/tables/${tableId}`, { expectations })
|
return await this._get<Table>(`/api/tables/${tableId}`, { expectations })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue