Allocamelus / Allocamelus

Detected usage of the any type JS-0323
Anti-pattern
Critical
2 years ago3 years old
Unexpected any. Specify a different type
 45      loggedIn: useStorageAsync("loggedIn", s.loggedIn, idbStore),
 46      user: useStorageAsync("user", s.user, idbStore, {
 47        serializer: {
 48          read: (v: any) => new User(JSON.parse(v)), 49          write: (v: User) => JSON.stringify(v),
 50        },
 51      }),
Unexpected any. Specify a different type
148export async function getKeys(
149  password: string,
150  saltEncoded: string
151): Promise<{ authKey: string; pgpPassphrase: string; err: NullError<any> }> {152  const salt = parse(saltEncoded);
153  salt.cost.FillEmpty();
154
Unexpected any. Specify a different type
 93export async function genKeys(
 94  username: string,
 95  password: string
 96): Promise<{ userKey: userKey; recoveryKey: string; err: NullError<any> }> { 97  const recoveryKey = create();
 98
 99  const recoveryKeyArray = exportKey((await recoveryKey).key);
Unexpected any. Specify a different type
 51  saltEncoded: string;
 52  authKey: string;
 53  pgpPassphrase: string;
 54  err: NullError<any>; 55}> {
 56  // Hash password
 57  const { hash, err } = await hashA2(
Unexpected any. Specify a different type
10
11interface hashReturn {
12  encodedHash: string;
13  err: NullError<any>;14}
15
16async function hash(