ExamplesGitHubNPM
  • Preparing search index...
  • The search index is not available
@lilbunnyrabbit/task-manager@1.0.0
  • @lilbunnyrabbit/task-manager@1.0.0
  • isTask

Function isTask

  • isTask<TSpec extends TaskSpec>(
        task: unknown,
        taskBuilder: TaskBuilder<TSpec>,
    ): task is Task<TSpec>
  • Checks if an object is an instance of Task.

    Type Parameters

    • TSpec extends TaskSpec

      Task specification type.

    Parameters

    • task: unknown

      Object to check.

    • taskBuilder: TaskBuilder<TSpec>

      Builder used to create the task.

    Returns task is Task<TSpec>

    true if the object is a Task.

    • Defined in src/core/task/task.helper.ts:13

Settings

Member Visibility
ExamplesGitHubNPM
@lilbunnyrabbit/task-manager@1.0.0
  • Loading...