Skip to content

Commit 305dda4

Browse files
committed
Update declarations
1 parent bb5198b commit 305dda4

File tree

1 file changed

+3
-5
lines changed
  • lib/node_modules/@stdlib/array/pool/docs/types

1 file changed

+3
-5
lines changed

lib/node_modules/@stdlib/array/pool/docs/types/index.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23-
import { ArrayLike, TypedArray, ComplexTypedArray } from '@stdlib/types/array';
23+
import { ArrayLike, RealOrComplexTypedArray, RealOrComplexDataType as DataType } from '@stdlib/types/array';
2424
import ArrayBuffer = require( '@stdlib/array/buffer' );
2525

26-
type DataType = 'float64' | 'float32' | 'int32' | 'uint32' | 'int16' | 'uint16' | 'int8' | 'uint8' | 'uint8c' | 'complex64' | 'complex128'; // tslint-disable-line max-line-length
27-
2826
/**
2927
* Typed array or null.
3028
*/
31-
type TypedArrayOrNull = TypedArray | ComplexTypedArray | null;
29+
type TypedArrayOrNull = RealOrComplexTypedArray | null;
3230

3331
/**
3432
* Interface defining pool options.
@@ -257,7 +255,7 @@ interface Pool {
257255
* // Free the allocated typed array buffer for use in a future allocation:
258256
* typedarraypool.free( arr.buffer );
259257
*/
260-
free( buf: TypedArray | ArrayBuffer ): void;
258+
free( buf: RealOrComplexTypedArray | ArrayBuffer ): void;
261259

262260
/**
263261
* Clears the typed array pool allowing garbage collection of previously allocated (and currently free) array buffers.

0 commit comments

Comments
 (0)