@magidoc/plugin-starter-variables
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -8,2 +8,3 @@ export declare type Page = { | ||
APP_TITLE: import("./variable").Variable<string>; | ||
SITE_ROOT: import("./variable").Variable<string>; | ||
QUERY_GENERATION_FACTORIES: import("./variable").Variable<Record<string, string | number | boolean | Record<string, unknown> | null | undefined>>; | ||
@@ -10,0 +11,0 @@ PAGES: import("./variable").Variable<(Page | undefined)[]>; |
@@ -9,2 +9,3 @@ import { stringConverter } from './converters/string.js'; | ||
APP_TITLE: createVariable('APP_TITLE', stringConverter()), | ||
SITE_ROOT: createVariable('SITE_ROOT', stringConverter()), | ||
QUERY_GENERATION_FACTORIES: createVariable('QUERY_GENERATION_FACTORIES', recordConverter((zod) => zod.union([ | ||
@@ -11,0 +12,0 @@ zod.string(), |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -13,2 +13,3 @@ import type { ZodType } from 'zod' | ||
APP_TITLE: createVariable<string>('APP_TITLE', stringConverter()), | ||
SITE_ROOT: createVariable<string>('SITE_ROOT', stringConverter()), | ||
QUERY_GENERATION_FACTORIES: createVariable< | ||
@@ -15,0 +16,0 @@ Record< |
@@ -17,2 +17,3 @@ import type { ZodType } from 'zod' | ||
'APP_TITLE', | ||
'SITE_ROOT', | ||
'QUERY_GENERATION_FACTORIES', | ||
@@ -39,2 +40,10 @@ 'PAGES', | ||
test('site root', () => { | ||
testStringVariable( | ||
variables.templates.SITE_ROOT, | ||
'VITE_SITE_ROOT', | ||
z.string().optional(), | ||
) | ||
}) | ||
test('query generation factories', () => { | ||
@@ -41,0 +50,0 @@ testRecordVariable( |
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
29023
673