mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 02:28:04 +08:00 
			
		
		
		
	style(editor): 完善codeBlock.setCodeDslById ts定义
This commit is contained in:
		
							parent
							
								
									07cd3065b2
								
							
						
					
					
						commit
						6ddac803a2
					
				@ -86,7 +86,7 @@ class CodeBlock extends BaseService {
 | 
			
		||||
   * @param {CodeBlockContent} codeConfig 代码块内容配置信息
 | 
			
		||||
   * @returns {void}
 | 
			
		||||
   */
 | 
			
		||||
  public async setCodeDslById(id: Id, codeConfig: CodeBlockContent): Promise<void> {
 | 
			
		||||
  public async setCodeDslById(id: Id, codeConfig: Partial<CodeBlockContent>): Promise<void> {
 | 
			
		||||
    const codeDsl = this.getCodeDsl();
 | 
			
		||||
 | 
			
		||||
    if (!codeDsl) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user