Skip to content

Commit

Permalink
added typing for ListItemNode.setChecked, export ListNodeTagType (fac…
Browse files Browse the repository at this point in the history
…ebook#2335)

Co-authored-by: Christian Ratz <christian.ratz@b-ite.de>
  • Loading branch information
digitalgopnik and Christian Ratz authored Jun 6, 2022
1 parent edc2219 commit fedee02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/lexical-list/LexicalList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*
*/

import {ListNodeTagType} from './src/LexicalListNode';

import {
ElementNode,
LexicalNode,
Expand All @@ -19,6 +17,7 @@ import {
} from 'lexical';
import {Spread} from 'libdefs/globals';

export type ListNodeTagType = 'ul' | 'ol';
export type ListType = 'number' | 'bullet' | 'check';
export function $createListItemNode(checked?: boolean | void): ListItemNode;
export function $createListNode(listType: ListType, start?: number): ListNode;
Expand All @@ -41,7 +40,7 @@ export declare class ListItemNode extends ElementNode {
canReplaceWith(replacement: LexicalNode): boolean;
canMergeWith(node: LexicalNode): boolean;
getChecked(): boolean | void;
setChecked(boolean): this;
setChecked(boolean: boolean): this;
toggleChecked(): void;
static importJSON(serializedNode: SerializedListItemNode): ListItemNode;
exportJSON(): SerializedListItemNode;
Expand Down

0 comments on commit fedee02

Please sign in to comment.