frontend: TypeScript imports work correctly

with d.ts files from DefinitelyTyped