How to test changes in electron?

I have made changes to a local clone of the electron project and would to test them in a sample application I wrote, however I am not been able to build this sample application when electron dependency is set to the local checkout, ie, "electron": "file:../electron/". The majority of the erros I get are like ...: error TS2503 Cannot find namespace 'Electron'.

How should electron be built and the dependency set in this situation?

I have also tried to get help from Stack Overflow, a detailed explanation can be found there: