This is a recruitment task verifying an input done for Remitly.
Task is written in Typescript because:
- I feel confident and efficent in it
- I hope it will stand out from the rest :)
However, if writing function in Go would be additionally appreciated, I can send the task in Go too.
Project includes unit tests (verifyTest.test.ts) and edge cases such as inputting non-compatible policy or multible Resources.
Instruction didn't specify how to resolve a situation with multiple Resources, so I assumed that function should return false if any of the Statements has Resources: "*".
How to run tests?
cd parseAWS
npm i
jest
Main function is in the main.ts file and theoretically can be run by compiling this file and runnig its .js product:
tsc main
node main
It won't return anything though, because there is no executable code, just function and type definitions.