Commit 6eb8b29d by Andrej Ocenas Committed by Torkel Ödegaard

Chore: Add more explicit typing (#16594)

parent 83e8dede
......@@ -2,7 +2,7 @@ import { createResetHandler, PasswordFieldEnum, Ctrl } from './passwordHandlers'
describe('createResetHandler', () => {
Object.keys(PasswordFieldEnum).forEach(fieldKey => {
const field = PasswordFieldEnum[fieldKey];
const field: any = PasswordFieldEnum[fieldKey as any];
it(`should reset existing ${field} field`, () => {
const event: any = {
......
......@@ -15,8 +15,14 @@ export enum PasswordFieldEnum {
*/
export type Ctrl = {
current: {
secureJsonFields: {};
secureJsonData?: {};
secureJsonFields: {
[key: string]: boolean;
};
secureJsonData?: {
[key: string]: string;
};
password?: string;
basicAuthPassword?: string;
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment