@magidoc/plugin-starter-variables
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -16,2 +16,4 @@ export type Page = { | ||
}; | ||
export type FieldSorting = 'default' | 'alphabetical'; | ||
export type ArgumentSorting = 'default' | 'alphabetical'; | ||
declare const _default: { | ||
@@ -23,2 +25,4 @@ APP_LOGO: import("./variable").Variable<string>; | ||
SITE_META: import("./variable").Variable<Record<string, string | undefined>>; | ||
FIELDS_SORTING: import("./variable").Variable<FieldSorting>; | ||
ARGUMENTS_SORTING: import("./variable").Variable<ArgumentSorting>; | ||
QUERY_GENERATION_FACTORIES: import("./variable").Variable<Record<string, string | number | boolean | Record<string, unknown> | null | undefined>>; | ||
@@ -25,0 +29,0 @@ PAGES: import("./variable").Variable<(Page | undefined)[]>; |
import { stringConverter } from './converters/string.js'; | ||
import { recordConverter } from './converters/record.js'; | ||
import { arrayConverter } from './converters/array.js'; | ||
import { enumConverter } from './converters/enum.js'; | ||
import { createVariable } from './variable.js'; | ||
@@ -12,2 +13,4 @@ | ||
SITE_META: createVariable('SITE_META', recordConverter((zod) => zod.string())), | ||
FIELDS_SORTING: createVariable('FIELDS_SORTING', enumConverter(['default', 'alphabetical'])), | ||
ARGUMENTS_SORTING: createVariable('ARGUMENTS_SORTING', enumConverter(['default', 'alphabetical'])), | ||
QUERY_GENERATION_FACTORIES: createVariable('QUERY_GENERATION_FACTORIES', recordConverter((zod) => zod.union([ | ||
@@ -14,0 +17,0 @@ zod.string(), |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"type": "module", | ||
@@ -24,10 +24,10 @@ "license": "MIT", | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "^18.13.0", | ||
"@vitest/coverage-c8": "^0.28.5", | ||
"@types/node": "^18.14.1", | ||
"@vitest/coverage-c8": "^0.29.1", | ||
"lodash": "^4.17.21", | ||
"rollup": "^3.15.0", | ||
"rollup": "^3.17.3", | ||
"tslib": "^2.5.0", | ||
"typescript": "^4.9.5", | ||
"vite": "^4.1.1", | ||
"vitest": "^0.28.5" | ||
"vite": "^4.1.4", | ||
"vitest": "^0.29.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "optionalDependencies": { |
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
22483
35
311