mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Fix Error type to be "Error | null" in crypto methods
This commit is contained in:
Vendored
+9
-9
@@ -5807,19 +5807,19 @@ declare module "crypto" {
|
||||
verifyError: number;
|
||||
}
|
||||
export function getDiffieHellman(group_name: string): DiffieHellman;
|
||||
export function pbkdf2(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
|
||||
export function pbkdf2(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => any): void;
|
||||
export function pbkdf2Sync(password: string | Buffer, salt: string | Buffer, iterations: number, keylen: number, digest: string): Buffer;
|
||||
export function randomBytes(size: number): Buffer;
|
||||
export function randomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
|
||||
export function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
||||
export function pseudoRandomBytes(size: number): Buffer;
|
||||
export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) => void): void;
|
||||
export function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
||||
export function randomFillSync(buffer: Buffer | Uint8Array, offset?: number, size?: number): Buffer;
|
||||
export function randomFill(buffer: Buffer, callback: (err: Error, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, callback: (err: Error, buf: Uint8Array) => void): void;
|
||||
export function randomFill(buffer: Buffer, offset: number, callback: (err: Error, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, offset: number, callback: (err: Error, buf: Uint8Array) => void): void;
|
||||
export function randomFill(buffer: Buffer, offset: number, size: number, callback: (err: Error, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, offset: number, size: number, callback: (err: Error, buf: Uint8Array) => void): void;
|
||||
export function randomFill(buffer: Buffer, callback: (err: Error | null, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, callback: (err: Error | null, buf: Uint8Array) => void): void;
|
||||
export function randomFill(buffer: Buffer, offset: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, offset: number, callback: (err: Error | null, buf: Uint8Array) => void): void;
|
||||
export function randomFill(buffer: Buffer, offset: number, size: number, callback: (err: Error | null, buf: Buffer) => void): void;
|
||||
export function randomFill(buffer: Uint8Array, offset: number, size: number, callback: (err: Error | null, buf: Uint8Array) => void): void;
|
||||
export interface RsaPublicKey {
|
||||
key: string;
|
||||
padding?: number;
|
||||
|
||||
Reference in New Issue
Block a user