typings.d.ts 351 B

12345678910111213141516171819202122
  1. /* eslint-disable no-unused-vars */
  2. // 全局要用的类型放到这里
  3. export type IResData<T> = {
  4. code: number
  5. msg: string
  6. result: T
  7. }
  8. export type IUserInfo = {
  9. nickname?: string
  10. avatar?: string
  11. /** 微信的 openid,非微信没有这个字段 */
  12. openid?: string
  13. token?: string
  14. }
  15. export enum TestEnum {
  16. A = 'a',
  17. B = 'b',
  18. }