web-humas-fe/types/globals.tsx

45 lines
850 B
TypeScript

import { SVGProps } from "react";
export type IconSvgProps = SVGProps<SVGSVGElement> & {
size?: number;
};
export type SidebarMenuTask = {
childMenu: any[];
name: string;
id: number;
parentId: number;
position: number;
statusId: number;
statusName: string;
};
export type Article = {
id: number;
title: string;
articleCategory: string;
updated_at: string;
creator: string;
source: string;
status: string;
actions: string;
};
export type MasterUser = {
id: number;
address: string,
dateOfBirth: string,
email: string,
fullname: string,
genderType: string,
identityNumber: string,
identityType: string,
lastEducation: string,
phoneNumber: string,
userLevelsId: number,
userRoleId: number,
username: string,
workType: string
};