browsertrix/frontend/index.d.ts
Emma Segal-Grossman d1156b0145
enable a few more useful eslint suggestions & correct some more types (#1517)
## Changes

Implements suggestions from
https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how/
and
https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful,
along with a couple more auto-fixable consistency rules.

Of note:
- Functions that return a promise are marked as async
- Suggestions now appear for where to simplify boolean checks,
non-nullish assertions, and optional chaining
2024-02-09 16:14:08 -08:00

10 lines
223 B
TypeScript

declare module "*.svg";
declare module "*.webp";
declare module "*.css";
declare module "regex-colorize";
/**
* Flattens to a normal string type, but preserves string literal suggestions
*/
type AnyString = string & {};