identity-admin-ui 1.12.27 → 1.12.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/types/context/Resource.d.ts +1 -0
- package/lib/cjs/types/context/auth/AuthReducer.d.ts +3 -3
- package/lib/esm/index.js +1 -1
- package/lib/esm/types/context/Resource.d.ts +1 -0
- package/lib/esm/types/context/auth/AuthReducer.d.ts +3 -3
- package/lib/index.d.ts +7 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
2
|
import { User } from './types';
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum AuthActionTypes {
|
|
4
4
|
LOGIN = "LOGIN",
|
|
5
5
|
LOGOUT = "LOGOUT"
|
|
6
6
|
}
|
|
@@ -9,10 +9,10 @@ export interface State {
|
|
|
9
9
|
isAuthenticated: boolean;
|
|
10
10
|
}
|
|
11
11
|
export type Action = {
|
|
12
|
-
type:
|
|
12
|
+
type: AuthActionTypes.LOGIN;
|
|
13
13
|
payload: User;
|
|
14
14
|
} | {
|
|
15
|
-
type:
|
|
15
|
+
type: AuthActionTypes.LOGOUT;
|
|
16
16
|
};
|
|
17
17
|
declare const AuthReducer: Reducer<State, Action>;
|
|
18
18
|
export default AuthReducer;
|