@types/ref-array
Advanced tools
@@ -1,6 +0,1 @@ | ||
| // Type definitions for ref-array | ||
| // Project: https://github.com/TooTallNate/ref-array | ||
| // Definitions by: Paul Loyd <https://github.com/loyd> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| import ref = require("ref"); | ||
@@ -7,0 +2,0 @@ |
| { | ||
| "name": "@types/ref-array", | ||
| "version": "0.0.29", | ||
| "version": "0.0.30", | ||
| "description": "TypeScript definitions for ref-array", | ||
@@ -10,4 +10,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ref-array", | ||
| "name": "Paul Loyd", | ||
| "url": "https://github.com/loyd", | ||
| "githubUsername": "loyd" | ||
| "githubUsername": "loyd", | ||
| "url": "https://github.com/loyd" | ||
| } | ||
@@ -26,4 +26,4 @@ ], | ||
| }, | ||
| "typesPublisherContentHash": "e5059a6bae92162f96f25b42636721e26a89aedbdf013538157256497c601335", | ||
| "typesPublisherContentHash": "7d47dc8f89d09083e79ff89c9fde9bf0af10a031842e8703e85a6993a8c20549", | ||
| "typeScriptVersion": "4.5" | ||
| } |
+97
-2
@@ -9,9 +9,104 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ref-array. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ref-array/index.d.ts) | ||
| ````ts | ||
| import ref = require("ref"); | ||
| interface ArrayType<T> extends ref.Type { | ||
| BYTES_PER_ELEMENT: number; | ||
| fixedLength: number; | ||
| /** The reference to the base type. */ | ||
| type: ref.Type; | ||
| /** | ||
| * Accepts a Buffer instance that should be an already-populated with data | ||
| * for the ArrayType. The "length" of the Array is determined by searching | ||
| * through the buffer's contents until an aligned NULL pointer is encountered. | ||
| */ | ||
| untilZeros(buffer: Buffer): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new(length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new(data: number[], length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new(data: Buffer, length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (data: number[], length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (data: Buffer, length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| } | ||
| /** | ||
| * The array type meta-constructor. | ||
| * The returned constructor's API is highly influenced by the WebGL | ||
| * TypedArray API. | ||
| */ | ||
| declare var ArrayType: { | ||
| new<T>(type: ref.Type, length?: number): ArrayType<T>; | ||
| new<T>(type: string, length?: number): ArrayType<T>; | ||
| <T>(type: ref.Type, length?: number): ArrayType<T>; | ||
| <T>(type: string, length?: number): ArrayType<T>; | ||
| }; | ||
| export = ArrayType; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
| * Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
| * Dependencies: [@types/ref](https://npmjs.com/package/@types/ref) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by [Paul Loyd](https://github.com/loyd). |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7284
44.24%112
558.82%87
-4.4%