Typescript Terminato! Funziona!
This commit is contained in:
23
src/typings/index.ts
Normal file
23
src/typings/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
//export * from './LoginState';
|
||||
|
||||
|
||||
export interface IResponse<T> {
|
||||
success?: boolean,
|
||||
message?: string,
|
||||
type: 'error'|'warning'
|
||||
data: T,
|
||||
}
|
||||
|
||||
export interface ITab {
|
||||
title: string,
|
||||
icon?: any,
|
||||
condition?: boolean,
|
||||
childs?: boolean,
|
||||
badge?: number,
|
||||
to: {
|
||||
name: string,
|
||||
params?: {
|
||||
[x: string]: any
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user