mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Using "keyof" to set the algorithm value types. Thanks @SimonSchick, I understand now.
This commit is contained in:
2
types/iron/index.d.ts
vendored
2
types/iron/index.d.ts
vendored
@@ -15,7 +15,7 @@ export interface SealOptionsSub {
|
||||
/**
|
||||
* the algorithm used ('aes-256-cbc' for encryption and 'sha256' for integrity are the only two supported at this time).
|
||||
*/
|
||||
algorithm: string;
|
||||
algorithm: keyof Algorithms;
|
||||
/**
|
||||
* the number of iterations used to derive a key from the password. Set to 1 by default. The number of ideal iterations
|
||||
* to use is dependent on your application's performance requirements. More iterations means it takes longer to generate the key.
|
||||
|
||||
Reference in New Issue
Block a user