@dopt/semantic-data-layer-checklist
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

@dopt/semantic-data-layer-checklist

An interface definition for Dopt's checklist and checklist item components.

export interface Checklist {
  id: string;

  title: string | null | undefined;
  body: RichText | null | undefined;

  items: ChecklistItem[];

  active: boolean;

  completed: boolean;
  dismissed: boolean;

  complete: () => void;
  dismiss: () => void;

  size: number;

  filter(on: FilterableField): ChecklistItem[];
  count(where: CountableField): number;
}

export interface ChecklistItem {
  id: string;

  index: number | null | undefined;

  title: string | null | undefined;
  body: RichText | null | undefined;

  completeLabel: string | null | undefined;

  done: boolean;

  active: boolean;

  skipped: boolean;
  completed: boolean;

  complete: () => void;
  skip: () => void;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dopt/semantic-data-layer-checklist

Weekly Downloads

1,063

Version

0.2.3

License

MIT

Unpacked Size

6.36 kB

Total Files

10

Last publish

Collaborators

  • kseth
  • alexchantastic
  • pankaj-avhad-dopt
  • chasebish
  • joemckenney