@storm-software/config 1.38.0 → 1.40.0

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.
package/src/types.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type z from "zod";
2
+ import type { ColorConfigMapSchema, ColorConfigSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, StormConfigSchema } from "./schema";
3
+ export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
4
+ export type DarkThemeColorConfigInput = z.input<typeof DarkThemeColorConfigSchema>;
5
+ export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
6
+ export type LightThemeColorConfigInput = z.input<typeof LightThemeColorConfigSchema>;
7
+ export type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
8
+ export type MultiThemeColorConfigInput = z.input<typeof MultiThemeColorConfigSchema>;
9
+ export type SingleThemeColorConfig = z.infer<typeof SingleThemeColorConfigSchema>;
10
+ export type SingleThemeColorConfigInput = z.input<typeof SingleThemeColorConfigSchema>;
11
+ export type ColorConfig = z.infer<typeof ColorConfigSchema>;
12
+ export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
13
+ export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
14
+ export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
15
+ type TStormConfig = z.infer<typeof StormConfigSchema>;
16
+ export type StormConfigInput = z.input<typeof StormConfigSchema>;
17
+ export type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
18
+ extensions?: (TStormConfig["extensions"] & {
19
+ [extensionName in TExtensionName]: TExtensionConfig;
20
+ }) | Record<string, any>;
21
+ };
22
+ export declare const COLOR_KEYS: string[];
23
+ export {};