-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make array arguments immutable Type the array component arguments as immutable. The component doesn't actually mutate them, so typing them as readonly allows caller to pass in either mutable or immutable arrays, rather than only mutable ones. * Use Promise instead of PromiseProxy A couple of things were typed as `PromiseProxy`s when they only used the `Promise` interface. This prevented callers from, for example, supplying a search function that produces a regular promise, i.e. a plain old async function. So change them to `Promise`. The `@selected` argument still uses a `PromiseProxy` because the component observes its `content` property, so allowing it to be a `Promise` would be a more involved code change.
- Loading branch information
1 parent
96f5c57
commit 9348552
Showing
1 changed file
with
15 additions
and
10 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