diff --git a/src/function.ts b/src/function.ts
index 7090ee386..1ca6264b3 100644
--- a/src/function.ts
+++ b/src/function.ts
@@ -163,7 +163,7 @@ export function constant(a: A): Lazy {
*
* @since 2.0.0
*/
-export const constTrue: Lazy =
+export const constTrue: Lazy =
/*#__PURE__*/
constant(true)
@@ -172,7 +172,7 @@ export const constTrue: Lazy =
*
* @since 2.0.0
*/
-export const constFalse: Lazy =
+export const constFalse: Lazy =
/*#__PURE__*/
constant(false)
diff --git a/test/function.ts b/test/function.ts
index 354103839..37848738b 100644
--- a/test/function.ts
+++ b/test/function.ts
@@ -28,11 +28,19 @@ describe('function', () => {
})
it('constTrue', () => {
- U.deepStrictEqual(_.constTrue(), true)
+ const a: true = _.constTrue()
+ // @ts-expect-error
+ const b: false = _.constTrue()
+
+ U.deepStrictEqual(a, true)
})
it('constFalse', () => {
- U.deepStrictEqual(_.constFalse(), false)
+ const a: false = _.constFalse()
+ // @ts-expect-error
+ const b: true = _.constFalse()
+
+ U.deepStrictEqual(a, false)
})
it('constNull', () => {