@animaapp/framework-helpers
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -35,3 +35,3 @@ "use strict"; | ||
} | ||
if (typeof newValue !== 'string') { | ||
if (typeof newValue !== 'string' && typeof newValue !== 'number') { | ||
throw new Error(`Unexpected value in design tokens json file for key = ${key} expecting string got: ${JSON.stringify(newValue)}, new formats will come soon`); | ||
@@ -38,0 +38,0 @@ } |
import { z } from 'zod'; | ||
export declare const schemaAntd: z.ZodObject<{ | ||
token: z.ZodRecord<z.ZodString, z.ZodString>; | ||
token: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
token: Record<string, string>; | ||
token: Record<string, string | number>; | ||
}, { | ||
token: Record<string, string>; | ||
token: Record<string, string | number>; | ||
}>; | ||
export type AntdConfig = z.infer<typeof schemaAntd>; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
exports.schemaAntd = zod_1.z.object({ | ||
token: zod_1.z.record(zod_1.z.string(), zod_1.z.string()), | ||
token: zod_1.z.record(zod_1.z.string(), zod_1.z.string().or(zod_1.z.number())), | ||
}); |
@@ -7,17 +7,17 @@ import { z } from 'zod'; | ||
}, "strip", z.ZodTypeAny, { | ||
colors: Record<string, any>; | ||
extend?: Record<string, any> | undefined; | ||
}, { | ||
colors: Record<string, any>; | ||
}, { | ||
extend?: Record<string, any> | undefined; | ||
colors: Record<string, any>; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
theme: { | ||
colors: Record<string, any>; | ||
extend?: Record<string, any> | undefined; | ||
colors: Record<string, any>; | ||
}; | ||
}, { | ||
theme: { | ||
colors: Record<string, any>; | ||
extend?: Record<string, any> | undefined; | ||
colors: Record<string, any>; | ||
}; | ||
@@ -24,0 +24,0 @@ }>; |
{ | ||
"name": "@animaapp/framework-helpers", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -20,2 +20,5 @@ "main": "./dist/index.js", | ||
}, | ||
"publishConfig": { | ||
"@animaapp:registry": "https://registry.npmjs.org/" | ||
}, | ||
"files": [ | ||
@@ -37,4 +40,5 @@ "/dist" | ||
"test": "jest '__tests__/.*.spec.ts'", | ||
"clean": "rm -rf dist .turbo", | ||
"lint:check": "eslint \"src/**/*.ts\"" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15634
25
1
36