c09da9a23f
* Force service worker-safe crypto when operating under a service worker * Fix tests/unsafe execution * Further fix tests? * Docs would probably be good * Define a type guard function https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards * Use `@types` repo * Maybe don't modify tsconfig, I guess * Revert "Use `@types` repo" This reverts commit db46bcf1db4b94fbc7e0c97a20d5d800fcb2768b. * Use a different type for Window * Simplify the crypto accessors