UNPKG

@thangk/easythemer

Version:

Easily generate shades from a colour palette for use in your app

26 lines (25 loc) 838 B
import type { ShadeOption } from "../types"; import { TYPE } from "../constants"; interface OutputType { result: ShadeOption[] | null; errors: null | {}; } export default function useValidate(inputToValidate: any): OutputType | { result: ({ optionName: string | null; hex: string | null; type: TYPE.SHADE_OPTION; generateShades: boolean; channelParams?: { type: TYPE.CHANNEL_PARAMS; channel: string; useBounds?: boolean | undefined; upperboundDivider?: number | undefined; lowerboundDivider?: number | undefined; upperboundPadding?: number | undefined; lowerboundPadding?: number | undefined; }[] | undefined; } | undefined)[]; errors: {} | null; }; export {};