generate type declaration file file