🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@types/ref-array

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ref-array - npm Package Compare versions

Comparing version
0.0.27
to
0.0.28
+62
ref-array/index.d.ts
// 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;
{
"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.*"
}
}
# 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"
}