mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 00:21:47 +08:00
Fix lists backward compatibility & markdown typedefs (#2068)
* Fix markdown typedfs * Fix list backward compatibility for cloning
This commit is contained in:

committed by
GitHub

parent
3b956f3620
commit
c214a259cc
@ -33,7 +33,7 @@ declare export class CodeNode extends ElementNode {
|
||||
setLanguage(language: string): void;
|
||||
getLanguage(): string | void;
|
||||
}
|
||||
declare export function $createCodeNode(): CodeNode;
|
||||
declare export function $createCodeNode(language?: string): CodeNode;
|
||||
declare export function $isCodeNode(
|
||||
node: ?LexicalNode,
|
||||
): boolean %checks(node instanceof CodeNode);
|
||||
|
Reference in New Issue
Block a user