Skip to content

Instantly share code, notes, and snippets.

@luizsn00
luizsn00 / Sample.types.ts
Last active October 25, 2023 00:00
MVVM - REACT SAMPLE
import { z } from "zod";
import { SampleModel } from "./SampleModel";
import { updateSampleSchema } from "./schemas";
type UpdateUserData = z.infer<typeof updateSampleSchema>;
type SampleViewProps = {
btnText: string;
btnCb: (params: UpdateUserData) => void;
};