Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. don't type assert opts, but instead use default values so that typescript understands it. This will prevent `this.opts` looking like they are required when they in reality are undefined (at runtime). This change also uncovered the fact that `locale` is in fact optional, so change types to reflect the fact. This change also fixes the problem where any options set to `undefined` in the constructor would overwrite any default options, example: { ...{ id: 'uppy' }, ...{ id: undefined } } becomes { id: undefined } 2. remove some other unsafe type assertions
- Loading branch information
Showing
1 changed file
with
45 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters