npm.io
1.8.2 • Published 2 years ago

@types/react-native-get-random-values

Licence
MIT
Version
1.8.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-native-get-random-values

Summary

This package contains type definitions for react-native-get-random-values (https://github.com/LinusU/react-native-get-random-values).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-get-random-values.

index.d.ts

export type TypedIntArray =
    | Int8Array
    | Uint8Array
    | Int16Array
    | Uint16Array
    | Int32Array
    | Uint32Array
    | Uint8ClampedArray;

declare global {
    interface crypto {
        getRandomValues<T extends TypedIntArray>(array: T): T | null;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Fabio Nettis.