Commit Graph
2 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš bc43fc4fef Make all Svelte events type-safe
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-07 18:00:24 +01:00
Rūdolfs Ošiņš 7d1f226798 Rename Error component to ErrorModal
`Error` is a built-in type in typescript, we don't want to have an
accidental clash.

Bumped into this when doing:

    try {
      // ...
    } catch (error: unknown) {
      if(error instanceof Error) {
        // ...
      }
    }

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-08 10:11:39 +02:00