mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-09 12:09:02 +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 代码块内容配置信息
|
* @param {CodeBlockContent} codeConfig 代码块内容配置信息
|
||||||
* @returns {void}
|
* @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();
|
const codeDsl = this.getCodeDsl();
|
||||||
|
|
||||||
if (!codeDsl) {
|
if (!codeDsl) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user