init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export interface LoginForm {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface Response<T = never> {
|
||||
message: string;
|
||||
code: number;
|
||||
data: T;
|
||||
}
|
||||
|
||||
export function isResponse(obj: any): obj is Response<any> {
|
||||
return typeof obj === 'object' && obj.message !== undefined && obj.code !== undefined;
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
declare namespace Theme {
|
||||
interface ThemeConfig {
|
||||
title: string;
|
||||
key: string;
|
||||
imgUrl: string;
|
||||
config: Partial<import('stepin/es/style/interface').Theme>;
|
||||
handler?: Function;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user