@meta-cms/core
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -170,3 +170,3 @@ import { Get } from 'type-fest'; | ||
declare type ObjectSchema<S extends Schema, P extends Paths<S>> = Split<P>[0] extends keyof S ? Split<P>[1] extends keyof S[Split<P>[0]] ? S[Split<P>[0]][Split<P>[1]] : never : never; | ||
declare type getNestedType<T> = T extends "text" ? string : T extends "image" ? ImageData : T extends "product" ? ProductData : CollectionData; | ||
declare type getNestedType<T> = T extends "text" ? string : T extends "richtext" ? string : T extends "image" ? ImageData : T extends "product" ? ProductData : CollectionData; | ||
declare type ObjectContent<O extends Model> = { | ||
@@ -173,0 +173,0 @@ [K in keyof O]: "schema" extends keyof O[K] ? O[K]["schema"] extends Model ? O[K]["isList"] extends true ? ObjectContent<O[K]["schema"]>[] : ObjectContent<O[K]["schema"]> : never : getNestedType<O[K]["type"]>; |
{ | ||
"name": "@meta-cms/core", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22494