7 lines
276 B
TypeScript
7 lines
276 B
TypeScript
import { safeChartInput } from "../presentation/command-schema";
|
|
export const frontendChartSchema = safeChartInput;
|
|
export const parseFrontendChart = (value: unknown) => {
|
|
const parsed = frontendChartSchema.safeParse(value);
|
|
return parsed.success ? parsed.data : null;
|
|
};
|