fix error when compiling ts library files .d.ts