@supernova-studio/model 0.53.1 → 0.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/helpers/nullish-to-optional.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
1
2
|
import { ZodType, ZodTypeDef, z, ZodSchema } from 'zod';
|
|
2
3
|
import slugifyImplementation from '@sindresorhus/slugify';
|
|
3
4
|
|
|
@@ -33,7 +34,7 @@ declare function zodUpdateInputOmit(): {
|
|
|
33
34
|
* Allows both null and undefined as input values in addition to the actual value,
|
|
34
35
|
* but coerces them both to undefined.
|
|
35
36
|
*/
|
|
36
|
-
declare function nullishToOptional<I, O>(type: ZodType<I, ZodTypeDef, O>):
|
|
37
|
+
declare function nullishToOptional<I, O>(type: ZodType<I, ZodTypeDef, O>): zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<ZodType<I, ZodTypeDef, O>>>, NonNullable<I> | undefined, O | null | undefined>;
|
|
37
38
|
|
|
38
39
|
declare const AssetDeleteScheduleStatus: z.ZodEnum<["InProgress", "Pending"]>;
|
|
39
40
|
type AssetDeleteScheduleStatus = z.infer<typeof AssetDeleteScheduleStatus>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
1
2
|
import { ZodType, ZodTypeDef, z, ZodSchema } from 'zod';
|
|
2
3
|
import slugifyImplementation from '@sindresorhus/slugify';
|
|
3
4
|
|
|
@@ -33,7 +34,7 @@ declare function zodUpdateInputOmit(): {
|
|
|
33
34
|
* Allows both null and undefined as input values in addition to the actual value,
|
|
34
35
|
* but coerces them both to undefined.
|
|
35
36
|
*/
|
|
36
|
-
declare function nullishToOptional<I, O>(type: ZodType<I, ZodTypeDef, O>):
|
|
37
|
+
declare function nullishToOptional<I, O>(type: ZodType<I, ZodTypeDef, O>): zod.ZodEffects<zod.ZodOptional<zod.ZodNullable<ZodType<I, ZodTypeDef, O>>>, NonNullable<I> | undefined, O | null | undefined>;
|
|
37
38
|
|
|
38
39
|
declare const AssetDeleteScheduleStatus: z.ZodEnum<["InProgress", "Pending"]>;
|
|
39
40
|
type AssetDeleteScheduleStatus = z.infer<typeof AssetDeleteScheduleStatus>;
|