Skip to content

Commit

Permalink
fix: declare that of returns arrays of length 1
Browse files Browse the repository at this point in the history
  • Loading branch information
levino authored Aug 10, 2023
1 parent 01b8661 commit 69ad41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ const _chainRecBreadthFirst: ChainRec1<URI>['chainRec'] = RA._chainRecBreadthFir
* @category constructors
* @since 2.0.0
*/
export const of: <A>(a: A) => Array<A> = NEA.of
export const of: <A>(a: A) => [A] = NEA.of

/**
* Makes an empty `Array`, useful for building a [`Monoid`](#Monoid)
Expand Down

0 comments on commit 69ad41e

Please sign in to comment.