export interface IPerson { name: string; age: number; gender: string; customID: string; } export interface PersonResponseGet { message: string; data: Array; dataCount: number; } export interface PersonResponsePost { message: string; data: IPerson; } export interface PersonResponseError { message: string; } export interface SPersonResponseGet { message: string; singleData: IPerson; } export interface SPersonResponseError { message: string; singleData: {}; } export interface PersonIdsResponseGet { message: string; dataIds: string[]; } export interface PersonIdsResponseError { message: string; dataIds: []; } export type PersonIdsResponse = PersonIdsResponseGet | PersonIdsResponseError; export type SPersonResponse = SPersonResponseGet | SPersonResponseError; export type PersonRespone = | PersonResponseGet | PersonResponsePost | PersonResponseError;