Skip to content

Commit

Permalink
issue-#43,#61 - Privatized 'SliceBase' type.
Browse files Browse the repository at this point in the history
- Updated TypedArray type's 'concat' method declaration.
  • Loading branch information
elycruz committed Aug 27, 2022
1 parent 152f0ca commit 61e810c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/fjl/src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type TypedArray = (
BigInt64Array |
BigUint64Array
) & {
concat(...args: (typeof this)[]): typeof this;
concat(...args: ConcatArray<(typeof this)>[]): typeof this;
};

export type ArrayType<T> = Array<T> | TypedArray;
Expand All @@ -65,7 +65,12 @@ export type ArrayTypeConstructor = ArrayConstructor |
BigInt64ArrayConstructor |
BigUint64ArrayConstructor;

export interface SliceBase {
/**
* Used to construct `Slice` type.
*
* @private
*/
interface SliceBase {
readonly length: number;

slice(start: number, end?: number);
Expand Down

0 comments on commit 61e810c

Please sign in to comment.