fixed main d.ts file