Skip to content

Commit

Permalink
docs: update the package name
Browse files Browse the repository at this point in the history
This is a fork
  • Loading branch information
danieleloscozzese committed Jan 12, 2025
1 parent 2412d86 commit f1502a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# post-task
# @dagher/post-task

A pre-configured progressively-enhancement utility function based on the
[Scheduler API](https://developer.mozilla.org/en-US/docs/Web/API/Prioritized_Task_Scheduling_API).
Expand Down Expand Up @@ -38,15 +38,10 @@ web vital and of course the smooth interaction which it tries to measure.
## Use

```js
import postTask from "post-task";
import postTask from "@dagher/post-task";

// ...
postTask(() => {
trackEvent("something-happened");
}, "background");
```

## Formats

This package is equally available as ESM and CJS and has a single, default
export.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright © 2024 Adevinta
// Copyright © 2025 Daniel Arthur Gallagher

declare module "post-task" {
declare module "@dagher/post-task" {
/**
* Queues an arbitrary task to be scheduled for execution with the given
* priority.
Expand Down

0 comments on commit f1502a4

Please sign in to comment.