fixed api.d.ts definition