Check out example codes for "create method in interface for set TS". It will help you in understanding the concepts better.

Code Example 1

running: someTask, arg: test

Learn ReactJs, React Native from akashmittal.com