mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add more explicit typing (#16594)
This commit is contained in:
parent
83e8dedea3
commit
6eb8b29d70
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user