Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

personInterface.ts 917B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. export interface IPerson {
  2. name: string;
  3. age: number;
  4. gender: string;
  5. customID: string;
  6. }
  7. export interface PersonResponseGet {
  8. message: string;
  9. data: Array<IPerson>;
  10. dataCount: number;
  11. }
  12. export interface PersonResponsePost {
  13. message: string;
  14. data: IPerson;
  15. }
  16. export interface PersonResponseError {
  17. message: string;
  18. }
  19. export interface SPersonResponseGet {
  20. message: string;
  21. singleData: IPerson;
  22. }
  23. export interface SPersonResponseError {
  24. message: string;
  25. singleData: {};
  26. }
  27. export interface PersonIdsResponseGet {
  28. message: string;
  29. dataIds: string[];
  30. }
  31. export interface PersonIdsResponseError {
  32. message: string;
  33. dataIds: [];
  34. }
  35. export type PersonIdsResponse = PersonIdsResponseGet | PersonIdsResponseError;
  36. export type SPersonResponse = SPersonResponseGet | SPersonResponseError;
  37. export type PersonRespone =
  38. | PersonResponseGet
  39. | PersonResponsePost
  40. | PersonResponseError;