@magidoc/plugin-starter-variables 2.14.2 → 2.14.4

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.
@@ -1,8 +1,8 @@
1
- export declare type Page = {
1
+ export type Page = {
2
2
  title: string;
3
3
  content: string | Page[];
4
4
  };
5
- export declare type ExternalLink = {
5
+ export type ExternalLink = {
6
6
  label: string;
7
7
  href: string;
8
8
  kind?: string;
@@ -2,7 +2,7 @@ import type { ZodType, ZodTypeDef } from 'zod';
2
2
  interface MetaEnv {
3
3
  [key: string]: unknown;
4
4
  }
5
- export declare type Variable<T> = {
5
+ export type Variable<T> = {
6
6
  name: string;
7
7
  key: string;
8
8
  asEnv: (value: T) => Record<string, string>;
@@ -10,11 +10,11 @@ export declare type Variable<T> = {
10
10
  getOrDefault: (env: MetaEnv, def: T) => T;
11
11
  zod: ZodVariable<T>;
12
12
  };
13
- export declare type ZodTypeProvider<T> = (zod: typeof import('zod')) => ZodType<T | undefined, ZodTypeDef, T | undefined>;
14
- export declare type ZodVariable<T> = {
13
+ export type ZodTypeProvider<T> = (zod: typeof import('zod')) => ZodType<T | undefined, ZodTypeDef, T | undefined>;
14
+ export type ZodVariable<T> = {
15
15
  type: ZodTypeProvider<T>;
16
16
  };
17
- export declare type Converter<T> = {
17
+ export type Converter<T> = {
18
18
  convert: (target: unknown) => T | null;
19
19
  asString: (value: T) => string;
20
20
  type: ZodTypeProvider<T>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@magidoc/plugin-starter-variables",
3
3
  "description": "A shared library that contains common Magidoc starter environment variables keys.",
4
4
  "private": false,
5
- "version": "2.14.2",
5
+ "version": "2.14.4",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "./build/index.js",
@@ -18,16 +18,16 @@
18
18
  "directory": "packages/plugins/starter-variables"
19
19
  },
20
20
  "devDependencies": {
21
- "@rollup/plugin-typescript": "^8.5.0",
22
- "@types/lodash": "^4.14.185",
23
- "@types/node": "^18.7.21",
24
- "@vitest/coverage-c8": "^0.23.4",
21
+ "@rollup/plugin-typescript": "^9.0.2",
22
+ "@types/lodash": "^4.14.189",
23
+ "@types/node": "^18.11.9",
24
+ "@vitest/coverage-c8": "^0.25.2",
25
25
  "lodash": "^4.17.21",
26
- "rollup": "^2.79.1",
27
- "tslib": "^2.4.0",
28
- "typescript": "^4.8.3",
29
- "vite": "^3.1.3",
30
- "vitest": "^0.23.4"
26
+ "rollup": "^3.3.0",
27
+ "tslib": "^2.4.1",
28
+ "typescript": "^4.9.3",
29
+ "vite": "^3.2.4",
30
+ "vitest": "^0.25.2"
31
31
  },
32
32
  "optionalDependencies": {
33
33
  "zod": "^3.19.1"