Extend TextLayerRenderParameters.container type to include HTMLElement.
In PR #14717, the type was changed from a HTMLElement to a DocumentFragment. This broke TypeScript projects that use a HTMLElement container. To remedy this, we extend the type of container to also include HTMLElement.
This commit is contained in:
		
							parent
							
								
									5d88233fbb
								
							
						
					
					
						commit
						b716e82d18
					
				@ -27,8 +27,8 @@ import {
 | 
			
		||||
 *   render (the object is returned by the page's `getTextContent` method).
 | 
			
		||||
 * @property {ReadableStream} [textContentStream] - Text content stream to
 | 
			
		||||
 *   render (the stream is returned by the page's `streamTextContent` method).
 | 
			
		||||
 * @property {DocumentFragment} container - The DOM node that will contain the
 | 
			
		||||
 *   text runs.
 | 
			
		||||
 * @property {DocumentFragment | HTMLElement} container - The DOM node that
 | 
			
		||||
 *   will contain the text runs.
 | 
			
		||||
 * @property {import("./display_utils").PageViewport} viewport - The target
 | 
			
		||||
 *   viewport to properly layout the text runs.
 | 
			
		||||
 * @property {Array<HTMLElement>} [textDivs] - HTML elements that correspond to
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user