Skip to content

Commit e25b23b

Browse files
committed
feat!: rename type definitions for array and ndarray data types
This commit renames type definitions in order to align with defined data type "kinds". This ensures consistent naming conventions such that a data type "kind" has a direct mapping to a data type type definition. BREAKING CHANGE: rename type definitions for array and ndarray data types In order to migrate, users should update their implementations to use the latest naming conventions. The affected type definitions are aliases for individual data type strings, so their should be no behavioral changes.
1 parent f4a22f1 commit e25b23b

36 files changed

Lines changed: 86 additions & 86 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

23-
import { FloatOrComplexDataType as DataType, ArrayLike, FloatOrComplexTypedArray, Complex64Array, Complex128Array } from '@stdlib/types/array';
23+
import { FloatingPointDataType as DataType, ArrayLike, FloatOrComplexTypedArray, Complex64Array, Complex128Array } from '@stdlib/types/array';
2424
import { ComplexLike, Complex64, Complex128 } from '@stdlib/types/complex';
2525

2626
/**

lib/node_modules/@stdlib/array/min-dtype/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

23-
import { RealDataType, ComplexDataType, DataType } from '@stdlib/types/array';
23+
import { RealDataType, ComplexFloatingPointDataType } from '@stdlib/types/array';
2424
import { ComplexLike } from '@stdlib/types/complex';
2525

2626
/**
@@ -61,7 +61,7 @@ declare function minDataType( value: number ): RealDataType;
6161
* var dt = minDataType( z );
6262
* // returns 'complex64'
6363
*/
64-
declare function minDataType( value: ComplexLike ): ComplexDataType;
64+
declare function minDataType( value: ComplexLike ): ComplexFloatingPointDataType;
6565

6666
/**
6767
* Returns the minimum array data type of the closest "kind" necessary for storing a provided scalar value.

lib/node_modules/@stdlib/array/min-dtype/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import minDataType = require( './index' );
2929
};
3030

3131
minDataType( 2.13 ); // $ExpectType RealDataType
32-
minDataType( z ); // $ExpectType ComplexDataType
32+
minDataType( z ); // $ExpectType ComplexFloatingPointDataType
3333
minDataType( 'beep' ); // $ExpectType "generic"
3434
}
3535

lib/node_modules/@stdlib/array/nans-like/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

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

23-
import { Complex128Array, Complex64Array, AnyArray, FloatOrComplexDataType } from '@stdlib/types/array';
23+
import { Complex128Array, Complex64Array, AnyArray, FloatingPointDataType } from '@stdlib/types/array';
2424

2525
/**
2626
* Data type.
2727
*/
28-
type DataType = FloatOrComplexDataType | 'generic';
28+
type DataType = FloatingPointDataType | 'generic';
2929

3030
/**
3131
* Creates an array filled with NaNs and having the same length as a provided input array.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

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

23-
import { Complex128Array, Complex64Array, FloatOrComplexDataType } from '@stdlib/types/array';
23+
import { Complex128Array, Complex64Array, FloatingPointDataType } from '@stdlib/types/array';
2424

2525
/**
2626
* Data type.
2727
*/
28-
type DataType = FloatOrComplexDataType | 'generic';
28+
type DataType = FloatingPointDataType | 'generic';
2929

3030
/**
3131
* Creates an array filled with NaNs and having a specified length.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

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

2626
/**

lib/node_modules/@stdlib/array/typed-complex-dtypes/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

23-
import { ComplexDataType as DataType } from '@stdlib/types/array';
23+
import { ComplexFloatingPointDataType as DataType } from '@stdlib/types/array';
2424

2525
/**
2626
* Returns a list of complex typed array data types.

lib/node_modules/@stdlib/array/typed-complex-dtypes/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import dtypes = require( './index' );
2323

2424
// The function returns a string array..
2525
{
26-
dtypes(); // $ExpectType ComplexDataType[]
26+
dtypes(); // $ExpectType ComplexFloatingPointDataType[]
2727
}
2828

2929
// The compiler throws an error if the function is provided arguments...

lib/node_modules/@stdlib/array/typed-complex/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/// <reference types="@stdlib/types"/>
2424

25-
import { ArrayLike, ComplexTypedArray, ComplexDataType as DataType } from '@stdlib/types/array';
25+
import { ArrayLike, ComplexTypedArray, ComplexFloatingPointDataType as DataType } from '@stdlib/types/array';
2626
import ArrayBuffer = require( '@stdlib/array/buffer' );
2727

2828
/**

lib/node_modules/@stdlib/array/typed-dtypes/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

23-
import { RealOrComplexDataType as DataType } from '@stdlib/types/array';
23+
import { NumericDataType as DataType } from '@stdlib/types/array';
2424

2525
/**
2626
* Returns a list of typed array data types.

0 commit comments

Comments
 (0)