Closed jpwilliams closed 3 months ago
Latest commit: 8f3c48b8519a58d8a6debc70c9bfee7903b13a0d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Addressed at runtime instead.
Summary
Incorrect properties would be ignored and produce no type errors when creating a client via
new Inngest()
. For example, the following would show no errors, even thoughbaseURL
should bebaseUrl
:This PR ensures we're looking for the exact object instead.
Currently, we also ensure we allow excess properties if the options passed are a variable instead of an object literal, as this may indicate that the user wants to do more with the object.
Checklist
Added a docs PR that references this PRN/A Improvement