Skip to content

Commit ffbcd4b

Browse files
committed
Users no longer have to use zod directly and infer input shape themselves
This is what that content commit was all about /cc @remcohaszing
1 parent c6fbb95 commit ffbcd4b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/integration/live-api.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import { config } from 'dotenv'
1010
import got, { type RetryOptions } from 'got'
1111
import intoStream from 'into-stream'
1212
import * as temp from 'temp'
13-
import type z from 'zod/v3'
14-
import type { interpolatableRobotFileFilterInstructionsSchema } from '../../src/alphalib/types/robots/file-filter.js'
15-
import type { interpolatableRobotImageResizeInstructionsSchema } from '../../src/alphalib/types/robots/image-resize.js'
13+
import type { InterpolatableRobotFileFilterInstructionsInput } from '../../src/alphalib/types/robots/file-filter.js'
14+
import type { InterpolatableRobotImageResizeInstructionsInput } from '../../src/alphalib/types/robots/image-resize.js'
1615
import {
1716
type CreateAssemblyOptions,
1817
type CreateAssemblyParams,
@@ -88,14 +87,14 @@ function createAssembly(client: Transloadit, params: CreateAssemblyOptions) {
8887
const genericImg = 'https://demos.transloadit.com/66/01604e7d0248109df8c7cc0f8daef8/snowflake.jpg'
8988
const sampleSvg =
9089
'<?xml version="1.0" standalone="no"?><svg height="100" width="100"><circle cx="50" cy="50" r="40" fill="red" /></svg>'
91-
const resizeOriginalStep: z.input<typeof interpolatableRobotImageResizeInstructionsSchema> = {
90+
const resizeOriginalStep: InterpolatableRobotImageResizeInstructionsInput = {
9291
robot: '/image/resize',
9392
use: ':original',
9493
result: true,
9594
width: 130,
9695
height: 130,
9796
}
98-
const dummyStep: z.input<typeof interpolatableRobotFileFilterInstructionsSchema> = {
97+
const dummyStep: InterpolatableRobotFileFilterInstructionsInput = {
9998
use: ':original',
10099
robot: '/file/filter',
101100
accepts: [],

0 commit comments

Comments
 (0)