fix(NODE-7247): clarify #rewrapManyDataKey() parameter types #4760
      
        
          +8
        
        
          −2
        
        
          
        
      
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Description
Summary of Changes
Marked
optionsparameter in.rewrapManyDataKey()method of theClientEncryption. This parameter is already considered as optional in the code (if (options) {) as well as in the documentation examples:Notes for Reviewers
New type tests are added, and the configuration for tsd is updated to our current target (es2023).
What is the motivation for this change?
NODE-7247
Align documentation and implementation with typescript definition.
Release Highlight
Release notes highlight
The options parameter for the
ClientEncryption.rewrapManyDataKey()method is now correctly marked as optional in its TypeScript definition. This change aligns the type signature with the method's implementation and documentation, resolving a type mismatch for TypeScript users.Double check the following
npm run check:lint)type(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript