@bigmistqke/minni 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/package.json +12 -12
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ type CustomTouchEvent = {
8
8
  declare const minni: <TEvent extends CustomMouseEvent | CustomTouchEvent>(event: TEvent, callback?: ((delta: {
9
9
  x: number;
10
10
  y: number;
11
- }, event: TEvent extends CustomTouchEvent ? TouchEvent : MouseEvent) => {}) | undefined) => Promise<{
11
+ }, event: TEvent extends CustomTouchEvent ? TouchEvent : MouseEvent) => void) | undefined) => Promise<{
12
12
  x: number;
13
13
  y: number;
14
14
  }>;
package/package.json CHANGED
@@ -1,19 +1,10 @@
1
1
  {
2
2
  "name": "@bigmistqke/minni",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "minimal drag utility",
5
5
  "author": "bigmistqke",
6
6
  "license": "MIT",
7
7
  "url": "https://github.com/bigmistqke/minni",
8
- "scripts": {
9
- "ts-types": "tsc",
10
- "build:dev": "rimraf lib && tsup --watch",
11
- "build:prod": "rimraf dist && env NODE_ENV=production tsup",
12
- "build:watch": "tsup --watch",
13
- "lint:fix": "eslint ./src --ext .ts,.tsx --quiet --fix --ignore-path ./.gitignore",
14
- "lint:format": "prettier --loglevel warn --write \"./**/*.{ts,tsx,css,md,json}\" ",
15
- "lint": "yarn lint:format && yarn lint:fix "
16
- },
17
8
  "devDependencies": {
18
9
  "@typescript-eslint/eslint-plugin": "^5.27.0",
19
10
  "@typescript-eslint/parser": "^5.27.0",
@@ -35,5 +26,14 @@
35
26
  "directories": {
36
27
  "lib": "lib"
37
28
  },
38
- "keywords": []
39
- }
29
+ "keywords": [],
30
+ "scripts": {
31
+ "ts-types": "tsc",
32
+ "build:dev": "rimraf lib && tsup --watch",
33
+ "build:prod": "rimraf dist && env NODE_ENV=production tsup",
34
+ "build:watch": "tsup --watch",
35
+ "lint:fix": "eslint ./src --ext .ts,.tsx --quiet --fix --ignore-path ./.gitignore",
36
+ "lint:format": "prettier --loglevel warn --write \"./**/*.{ts,tsx,css,md,json}\" ",
37
+ "lint": "yarn lint:format && yarn lint:fix "
38
+ }
39
+ }