Skip to content

Commit

Permalink
feat(curry-and-pipe): add new level
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoLeBras committed Jun 28, 2020
1 parent 1bee7d6 commit 5e1ede2
Show file tree
Hide file tree
Showing 4 changed files with 1,915 additions and 1,320 deletions.
17 changes: 7 additions & 10 deletions curry-and-pipe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@
"url": "git+https://github.com/winoteam/technical-challenges.git"
},
"devDependencies": {
"@types/jest": "24.0.9",
"jest": "24.1.0",
"prettier": "1.16.4",
"ts-jest": "24.0.0",
"typescript": "2.9.2"
"@types/jest": "^26.0.3",
"jest": "^26.1.0",
"prettier": "2.0.5",
"ts-jest": "^26.1.1",
"typescript": "3.9.5"
},
"dependencies": {
"@types/async": "2.4.1",
"@types/graphql": "14.0.7",
"@types/isomorphic-fetch": "0.0.35",
"polished": "3.0.3",
"ts-node": "8.0.3"
"polished": "^3.0.3",
"ts-node": "^8.10.2"
}
}
14 changes: 10 additions & 4 deletions curry-and-pipe/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@ console.log({ colorA, colorB })

// Step 7: Explosion
// console.log('\nExplosion')
// const tone = pipe(
// curriedLighten(0.2),
// curriedDarken(0.2),
// )
// const tone = pipe(curriedLighten(0.2), curriedDarken(0.2))
// const colorE = tone('#eee')
// console.log({ colorE })

// Step 8: Typed explosion
// console.log('\nTyped explosion')
// const typedTone = pipe(
// curriedLighten('0.2') // 'Error' ,
// curriedDarken(0.2)
// );
// const typedColor = typedTone('#eee')
// console.log({ typedColor })
3 changes: 2 additions & 1 deletion curry-and-pipe/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"noImplicitAny": false
"noImplicitAny": false,
"types": ["jest"]
}
}
Loading

0 comments on commit 5e1ede2

Please sign in to comment.