Skip to content

Commit c7bd52c

Browse files
committed
v2/index.ts: ProdiaJobComplete => ProdiaJobResult
1 parent 423ad9b commit c7bd52c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

v2/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type ProdiaJob = {
2929
config?: Record<string, JsonValue>;
3030
};
3131

32-
type ProdiaJobComplete = ProdiaJob & {
32+
type ProdiaJobResult = ProdiaJob & {
3333
id: string;
3434
created_at: string;
3535
updated_at: string;
@@ -62,7 +62,7 @@ export type Prodia = {
6262
params: ProdiaJob,
6363
options?: Partial<ProdiaJobOptions>,
6464
) => Promise<{
65-
job: ProdiaJobComplete;
65+
job: ProdiaJobResult;
6666

6767
// currently these are the only output field for all job types.
6868
// they will return the raw bytes for that output.
@@ -214,7 +214,7 @@ export const createProdia = ({
214214
new TextDecoder().decode(
215215
await (body.get("job") as Blob).arrayBuffer(),
216216
),
217-
) as ProdiaJobComplete;
217+
) as ProdiaJobResult;
218218

219219
if (response.status >= 400 && response.status < 500) {
220220
if ("error" in job && typeof job.error === "string") {

0 commit comments

Comments
 (0)