@types/ref-array
Advanced tools
| // 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'); | ||
| 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; |
| { | ||
| "name": "@types/ref-array", | ||
| "version": "0.0.28", | ||
| "description": "TypeScript definitions for ref-array", | ||
| "license": "MIT", | ||
| "author": "Paul Loyd <https://github.com/loyd>", | ||
| "main": "", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": { | ||
| "@types/ref": "*" | ||
| }, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "a6c3041b6b180f3d46a77f883c91c2c3d6c09ea7f82cfa4015dae3f9623a87fa" | ||
| } |
| # Installation | ||
| > `npm install --save @types/ref-array` | ||
| # Summary | ||
| This package contains type definitions for ref-array (https://github.com/TooTallNate/ref-array). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/ref-array | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: ref | ||
| * Global values: ArrayType | ||
| # Credits | ||
| These definitions were written by Paul Loyd <https://github.com/loyd>. |
| { | ||
| "authors": "Paul Loyd <https://github.com/loyd>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [ | ||
| "ref" | ||
| ], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "ref-array", | ||
| "typingsPackageName": "ref-array", | ||
| "projectName": "https://github.com/TooTallNate/ref-array", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "ArrayType" | ||
| ], | ||
| "declaredModules": [ | ||
| "ref-array" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "a6c3041b6b180f3d46a77f883c91c2c3d6c09ea7f82cfa4015dae3f9623a87fa" | ||
| } |
-62
| // 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'); | ||
| 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; |
-17
| { | ||
| "name": "@types/ref-array", | ||
| "version": "0.0.27", | ||
| "description": "TypeScript definitions for ref-array", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "author": "Paul Loyd <https://github.com/loyd>", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "license": "MIT", | ||
| "typings": "index.d.ts", | ||
| "dependencies": { | ||
| "@types/ref": "0.0.*" | ||
| } | ||
| } |
-18
| # Installation | ||
| > `npm install --save @types/ref-array` | ||
| # Summary | ||
| This package contains type definitions for ref-array (https://github.com/TooTallNate/ref-array). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/ref-array | ||
| Additional Details | ||
| * Last updated: Thu, 14 Jul 2016 13:52:50 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: ref | ||
| * Global values: ArrayType | ||
| # Credits | ||
| These definitions were written by Paul Loyd <https://github.com/loyd>. |
| { | ||
| "authors": "Paul Loyd <https://github.com/loyd>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [ | ||
| "ref" | ||
| ], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "ref-array", | ||
| "typingsPackageName": "ref-array", | ||
| "projectName": "https://github.com/TooTallNate/ref-array", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "ArrayType" | ||
| ], | ||
| "declaredModules": [ | ||
| "ref-array" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "contentHash": "a6c3041b6b180f3d46a77f883c91c2c3d6c09ea7f82cfa4015dae3f9623a87fa" | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4151
1.57%82
1.23%Updated