From 5d256a468f8b04d5d1e816fc7f45132db3d22a06 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 14 Sep 2023 19:44:15 +0200 Subject: [PATCH] Fix function name Square --- src/infer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/infer.ts b/src/infer.ts index e60dbc8..bee28f7 100644 --- a/src/infer.ts +++ b/src/infer.ts @@ -18,10 +18,10 @@ const create = createFactory<{ // These are our string based interfaces, which we can use both in typed-function and in TypeScript: const Multiply = 'multiply(number,number)=>number' -const Sqrt = 'sqrt(number)=>number' +const Square = 'square(number)=>number' const Zero = 'zero(number)=>number' -const createSquare = create(Sqrt, [Multiply, Zero],dep => +const createSquare = create(Square, [Multiply, Zero], dep => x => dep.multiply(x, x) )