Skip to content

Commit

Permalink
Bumped package version again.
Browse files Browse the repository at this point in the history
Forgot to compile code before pushing new package to NPM last time. :\
  • Loading branch information
T99 committed Aug 27, 2021
1 parent ec29b8b commit 2aae644
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iter-over",
"version": "2.0.1",
"version": "2.0.2",
"description": "Sugary iteration utilities and interfaces.",
"main": "js/main",
"types": ".d.ts/main",
Expand Down
2 changes: 1 addition & 1 deletion ts/core/abstract-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export abstract class AbstractIterator<E> implements IIterator<E> {
*
* @returns {E | undefined} The next element this AbstractIterator has.
*/
public abstract next(): E | undefined;
public abstract next(): E;

/**
* Performs the specified action for all of the remaining elements in this AbstractIterator.
Expand Down
2 changes: 1 addition & 1 deletion ts/tests/array-iterator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe("Per-method tests.", (): void => {

let resultSet: number[] = [];

populatedIterator.forEachRemaining((element: number) => resultSet.push(element));
populatedIterator.forEachRemaining((element: number | undefined) => resultSet.push(element as number));

expect(resultSet).toStrictEqual(iteratorArray);

Expand Down
2 changes: 1 addition & 1 deletion ts/utility/array-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AbstractIterator } from "../core/abstract-iterator";
* @version v1.5.0
* @since v0.1.0
*/
export class ArrayIterator<E> extends AbstractIterator<E> {
export class ArrayIterator<E> extends AbstractIterator<E | undefined> {

/**
* The array over which this object is iterating.
Expand Down
2 changes: 1 addition & 1 deletion ts/utility/string-character-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AbstractIterator } from "../core/abstract-iterator";
* @version v1.0.0
* @since v0.1.0
*/
export class StringCharacterIterator extends AbstractIterator<string> {
export class StringCharacterIterator extends AbstractIterator<string | undefined> {

private content: string;

Expand Down
2 changes: 1 addition & 1 deletion ts/utility/string-line-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AbstractIterator } from "../core/abstract-iterator";
* @version v1.2.0
* @since v1.2.0
*/
export class StringLineIterator extends AbstractIterator<string> {
export class StringLineIterator extends AbstractIterator<string | undefined> {

private content: string;

Expand Down

0 comments on commit 2aae644

Please sign in to comment.