-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Typescript factory functions): Only first required prop is unnamed
This change attempts to balance the convienience of unnamed arguments, with the robustness of named arguments (aka keyword arguments in Python and other langs), particularly to changes in the number and order of required properties. It should mean that consumers of these factory functions do not need to change their code as often, when/if there are changes to type schemas.
- Loading branch information
1 parent
44e2ed5
commit 02b3483
Showing
3 changed files
with
34 additions
and
22 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
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
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