diff --git a/dtslint/ts3.5/Array.ts b/dtslint/ts3.5/Array.ts index 3d2850922..004b0de6a 100644 --- a/dtslint/ts3.5/Array.ts +++ b/dtslint/ts3.5/Array.ts @@ -9,6 +9,8 @@ declare const ns: Array declare const ss: Array declare const tns: Array<[number, string]> +pipe(_.of('b'), ([value]: [string]) => value) + // prepend pipe(ss, _.prepend('a')) // $ExpectType NonEmptyArray diff --git a/package-lock.json b/package-lock.json index d9d89a850..74b4a7ce6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fp-ts", - "version": "2.15.0", + "version": "2.16.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fp-ts", - "version": "2.15.0", + "version": "2.16.1", "license": "MIT", "devDependencies": { "@effect/language-service": "^0.0.19", diff --git a/src/Array.ts b/src/Array.ts index 1668856aa..45b26d016 100644 --- a/src/Array.ts +++ b/src/Array.ts @@ -1508,7 +1508,7 @@ const _chainRecBreadthFirst: ChainRec1['chainRec'] = RA._chainRecBreadthFir * @category constructors * @since 2.0.0 */ -export const of: (a: A) => Array = NEA.of +export const of: (a: A) => [A] = NEA.of /** * Makes an empty `Array`, useful for building a [`Monoid`](#Monoid)