Skip to content

0.2.7 types TCallback

Ivan S Glazunov edited this page Feb 20, 2015 · 2 revisions

TCallback

type TCallback = (result: any) => void;

Universal type for the callback function. Used everywhere.

Made in order to say that callbacks in this module will always return only one argument - result. Without argument error.

Clone this wiki locally