Fixes lib.d.ts build error