-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.d.ts
More file actions
50 lines (42 loc) · 1.15 KB
/
index.d.ts
File metadata and controls
50 lines (42 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import {Component} from "react";
export interface CreateTable {
createTable: (TableName: string, Query: string) => Function;
}
export interface Message {
status: boolean;
message: string;
}
export interface DBUpdateUser {
[userName?: string]: string;
[password?: string]: string;
[email?: string]: string;
[role?: string]: UserRoles;
}
export enum UserRoles {
subscriber = 'subsciber'
}
// Allow arrays to be indexed with strings
export interface ArrayIndexedWithStrings {
[key: string]: any;
}
export interface Redirects {
[page: string]: {
redirect: string | undefined;
};
}
export interface Notification extends UIkit.Notify {
notification: Function;
}
export default class NextAuthenticate extends Component<NextAuthenticateProps> { }
export interface MyAppContext {
setContextProperty: function | undefined;
user: string | undefined;
sidebarIsOpen: boolean;
notifications: boolean;
activeDashboardPath: string | undefined;
activeDashboardMenus: Map<string, number>;
access: boolean;
redirect: string | undefined;
userID: string | undefined;
isPublic: boolean;
}