feat(demo): enum 使用范例
This commit is contained in:
6
src/typings.d.ts
vendored
6
src/typings.d.ts
vendored
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
// 全局要用的类型放到这里
|
||||
|
||||
export type IResData<T> = {
|
||||
@@ -13,3 +14,8 @@ export type IUserInfo = {
|
||||
openid?: string
|
||||
token?: string
|
||||
}
|
||||
|
||||
export enum TestEnum {
|
||||
A = 'a',
|
||||
B = 'b',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user