Options
All
  • Public
  • Public/Protected
  • All
Menu

there-is-another-one-todo-library

Set of pure functions to work with todo list

npm version Build Status Coverage Status

install

npm install --save there-is-another-one-todo-library

documentation

https://utlime.github.io/there-is-another-one-todo-library/

Index

Functions

identityContainCollection

  • identityContainCollection(atLeastOne?: boolean): function

identityExcludeCollection

  • identityExcludeCollection(collection1: IIdentity[]): function

identityInCollection

  • identityInCollection(collection: IIdentity[]): function

identityMergeCollection

  • identityMergeCollection(collection1: IIdentity[]): function

identityNotInCollection

  • identityNotInCollection(collection: IIdentity[]): function

tagDefaults

  • tagDefaults(options?: object): function
  • Create new tag with default options

    Parameters

    • Default value options: object = { color: '#FFF' }
      • Optional color?: undefined | string

    Returns function

      • (tag: object): ITag
      • Parameters

        • tag: object
          • Optional color?: undefined | string
          • name: string

        Returns ITag

tagUpdate

  • tagUpdate(options?: object): function
  • Create new tag with option

    Parameters

    • Default value options: object = {}
      • Optional color?: undefined | string
      • Optional name?: undefined | string

    Returns function

todoDefaults

  • todoDefaults(options?: object): function
  • Create new task with default options

    Parameters

    • Default value options: object = { done: false }
      • Optional done?: undefined | false | true

    Returns function

      • Parameters

        • todo: object
          • Optional done?: undefined | false | true
          • task: string

        Returns ITodo

todoIsDone

  • todoIsDone(done: boolean): function
  • Return boolean value if task status is equal to done

    Parameters

    • done: boolean

    Returns function

      • Parameters

        Returns boolean

todoUpdate

  • todoUpdate(options?: object): function
  • Create new task with option

    Parameters

    • Default value options: object = {}
      • Optional done?: undefined | false | true
      • Optional task?: undefined | string

    Returns function

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc