puppeteer/utils/doclint/check_public_api
Jack Franklin 5e8d79bf98
chore: upgrade to TypeScript 3.5 (#5556)
TS 3.5 got much stricter on writing changes to objects with varied types [1] so we have to do a bit of typecasting work to convince TS about the types of keys and values that we are setting.

Longer term we should think about a better data structure that avoids us having to jump through some hoops but for now I think this is a reasonable step to get us onto 3.5.

Same story regarding bindings on `window`: the easiest fix is to cast `window` to `any` for the code that adds to it. I'm sure we can come up with a more type-safe way of doing this in the future.

[1]: https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#fixes-to-unsound-writes-to-indexed-access-types
2020-03-31 10:48:09 +02:00
..
test chore(types): generate our own d.ts file from api.md (#3744) 2019-01-28 15:12:45 -08:00
Documentation.js feat(puppeteer): introduce puppeteer.errors and puppeteer.devices (#4312) 2019-04-19 15:33:06 -07:00
index.js chore: introduce //lib/api.js (#3835) 2019-01-25 23:21:14 -05:00
JSBuilder.js chore: upgrade to TypeScript 3.5 (#5556) 2020-03-31 10:48:09 +02:00
MDBuilder.js chore(types): generate our own d.ts file from api.md (#3744) 2019-01-28 15:12:45 -08:00