标签:
Define a function type and params type:
// The function init // Accept two params which are both type string // Return void const init: (s: string, e: string) => void = (start, end) => { console.log(start, end); } init("start", "end");
[Typescript] Function defination
标签:
原文地址:http://www.cnblogs.com/Answer1215/p/5346349.html