style: 统一代码格式和类型定义,测试eslint --fix, 还是有报错
This commit is contained in:
6
src/typings.d.ts
vendored
6
src/typings.d.ts
vendored
@@ -1,14 +1,14 @@
|
||||
// 全局要用的类型放到这里
|
||||
|
||||
declare global {
|
||||
type IResData<T> = {
|
||||
interface IResData<T> {
|
||||
code: number
|
||||
msg: string
|
||||
data: T
|
||||
}
|
||||
|
||||
// uni.uploadFile文件上传参数
|
||||
type IUniUploadFileOptions = {
|
||||
interface IUniUploadFileOptions {
|
||||
file?: File
|
||||
files?: UniApp.UploadFileOptionFiles[]
|
||||
filePath?: string
|
||||
@@ -16,7 +16,7 @@ declare global {
|
||||
formData?: any
|
||||
}
|
||||
|
||||
type IUserInfo = {
|
||||
interface IUserInfo {
|
||||
nickname?: string
|
||||
avatar?: string
|
||||
/** 微信的 openid,非微信没有这个字段 */
|
||||
|
||||
Reference in New Issue
Block a user