Fix function name Square
This commit is contained in:
parent
1c48e57ea1
commit
5d256a468f
@ -18,10 +18,10 @@ const create = createFactory<{
|
|||||||
|
|
||||||
// These are our string based interfaces, which we can use both in typed-function and in TypeScript:
|
// These are our string based interfaces, which we can use both in typed-function and in TypeScript:
|
||||||
const Multiply = 'multiply(number,number)=>number'
|
const Multiply = 'multiply(number,number)=>number'
|
||||||
const Sqrt = 'sqrt(number)=>number'
|
const Square = 'square(number)=>number'
|
||||||
const Zero = 'zero(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)
|
x => dep.multiply(x, x)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user