-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
57 additions
and
453 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
import type { OlCounterType } from './OlCounterType'; | ||
|
||
/** | ||
* Meta information of each list item | ||
*/ | ||
export interface ItemMeta {}; | ||
export interface ItemMetaBase {} | ||
|
||
/** | ||
* Meta information of checklist item | ||
*/ | ||
export interface ChecklistItemMeta extends ItemMeta { | ||
export interface ChecklistItemMeta extends ItemMetaBase { | ||
/** | ||
* State of the checkbox of the item | ||
*/ | ||
checked: boolean; | ||
}; | ||
} | ||
|
||
/** | ||
* Meta information of ordered list item | ||
*/ | ||
export interface OrderedListItemMeta extends ItemMeta { | ||
export interface OrderedListItemMeta extends ItemMetaBase { | ||
/** | ||
* If passed, ordered list counters will start with this index | ||
*/ | ||
start?: number; | ||
}; | ||
/** | ||
* Counters type used only in ordered list | ||
*/ | ||
counterType?: OlCounterType; | ||
} | ||
|
||
/** | ||
* Meta information of unordered list item | ||
*/ | ||
export interface UnorderedListItemMeta extends ItemMeta {}; | ||
export interface UnorderedListItemMeta extends ItemMetaBase {} | ||
|
||
/** | ||
* Type that represents all available meta objects for list item | ||
*/ | ||
export type ItemMeta = ChecklistItemMeta | OrderedListItemMeta | UnorderedListItemMeta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters