+2
-13
@@ -1,14 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.cjs'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions, QuansyncGenerator } from './types.cjs'; | ||
| export { QuansyncAwaitableGenerator, QuansyncInput } from './types.cjs'; | ||
| declare const GET_IS_ASYNC: unique symbol; | ||
@@ -32,3 +22,2 @@ declare class QuansyncError extends Error { | ||
| export { GET_IS_ASYNC, QuansyncError, getIsAsync, quansync, toGenerator }; | ||
| export type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { GET_IS_ASYNC, QuansyncError, QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, getIsAsync, quansync, toGenerator }; |
+2
-13
@@ -1,14 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.mjs'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions, QuansyncGenerator } from './types.mjs'; | ||
| export { QuansyncAwaitableGenerator, QuansyncInput } from './types.mjs'; | ||
| declare const GET_IS_ASYNC: unique symbol; | ||
@@ -32,3 +22,2 @@ declare class QuansyncError extends Error { | ||
| export { GET_IS_ASYNC, QuansyncError, getIsAsync, quansync, toGenerator }; | ||
| export type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { GET_IS_ASYNC, QuansyncError, QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, getIsAsync, quansync, toGenerator }; |
+2
-13
@@ -1,14 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.js'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions, QuansyncGenerator } from './types.js'; | ||
| export { QuansyncAwaitableGenerator, QuansyncInput } from './types.js'; | ||
| declare const GET_IS_ASYNC: unique symbol; | ||
@@ -32,3 +22,2 @@ declare class QuansyncError extends Error { | ||
| export { GET_IS_ASYNC, QuansyncError, getIsAsync, quansync, toGenerator }; | ||
| export type { QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { GET_IS_ASYNC, QuansyncError, QuansyncFn, QuansyncGenerator, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, getIsAsync, quansync, toGenerator }; |
+2
-11
@@ -1,12 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.cjs'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions } from './types.cjs'; | ||
| export { QuansyncAwaitableGenerator, QuansyncGenerator, QuansyncInput } from './types.cjs'; | ||
| /** | ||
@@ -26,3 +18,2 @@ * This function is equivalent to `quansync` from main entry | ||
| export { quansync }; | ||
| export type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, quansync }; |
+2
-11
@@ -1,12 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.mjs'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions } from './types.mjs'; | ||
| export { QuansyncAwaitableGenerator, QuansyncGenerator, QuansyncInput } from './types.mjs'; | ||
| /** | ||
@@ -26,3 +18,2 @@ * This function is equivalent to `quansync` from main entry | ||
| export { quansync }; | ||
| export type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, quansync }; |
+2
-11
@@ -1,12 +0,4 @@ | ||
| import type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions } from './types.js'; | ||
| import { QuansyncInputObject, QuansyncFn, QuansyncGeneratorFn, QuansyncOptions } from './types.js'; | ||
| export { QuansyncAwaitableGenerator, QuansyncGenerator, QuansyncInput } from './types.js'; | ||
| /** | ||
@@ -26,3 +18,2 @@ * This function is equivalent to `quansync` from main entry | ||
| export { quansync }; | ||
| export type { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions }; | ||
| export { QuansyncFn, QuansyncGeneratorFn, QuansyncInputObject, QuansyncOptions, quansync }; |
+4
-0
@@ -19,2 +19,6 @@ interface QuansyncOptions { | ||
| type QuansyncFn<Return = any, Args extends any[] = []> = ((...args: Args) => QuansyncAwaitableGenerator<Return>) & { | ||
| /** | ||
| * **Warning**: The `async` and `sync` methods will be lost after invoked. | ||
| */ | ||
| bind: <T, A extends any[], B extends any[]>(this: (this: T, ...args: [...A, ...B]) => QuansyncAwaitableGenerator<Return>, thisArg: T, ...args: A) => ((...args: B) => QuansyncAwaitableGenerator<Return>); | ||
| sync: (...args: Args) => Return; | ||
@@ -21,0 +25,0 @@ async: (...args: Args) => Promise<Return>; |
+4
-0
@@ -19,2 +19,6 @@ interface QuansyncOptions { | ||
| type QuansyncFn<Return = any, Args extends any[] = []> = ((...args: Args) => QuansyncAwaitableGenerator<Return>) & { | ||
| /** | ||
| * **Warning**: The `async` and `sync` methods will be lost after invoked. | ||
| */ | ||
| bind: <T, A extends any[], B extends any[]>(this: (this: T, ...args: [...A, ...B]) => QuansyncAwaitableGenerator<Return>, thisArg: T, ...args: A) => ((...args: B) => QuansyncAwaitableGenerator<Return>); | ||
| sync: (...args: Args) => Return; | ||
@@ -21,0 +25,0 @@ async: (...args: Args) => Promise<Return>; |
+4
-0
@@ -19,2 +19,6 @@ interface QuansyncOptions { | ||
| type QuansyncFn<Return = any, Args extends any[] = []> = ((...args: Args) => QuansyncAwaitableGenerator<Return>) & { | ||
| /** | ||
| * **Warning**: The `async` and `sync` methods will be lost after invoked. | ||
| */ | ||
| bind: <T, A extends any[], B extends any[]>(this: (this: T, ...args: [...A, ...B]) => QuansyncAwaitableGenerator<Return>, thisArg: T, ...args: A) => ((...args: B) => QuansyncAwaitableGenerator<Return>); | ||
| sync: (...args: Args) => Return; | ||
@@ -21,0 +25,0 @@ async: (...args: Args) => Promise<Return>; |
+13
-13
| { | ||
| "name": "quansync", | ||
| "type": "module", | ||
| "version": "0.2.10", | ||
| "version": "0.2.11", | ||
| "description": "Create sync/async APIs with usable logic", | ||
@@ -65,15 +65,15 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
| "devDependencies": { | ||
| "@antfu/eslint-config": "^4.10.1", | ||
| "@types/node": "^22.13.10", | ||
| "bumpp": "^10.1.0", | ||
| "eslint": "^9.22.0", | ||
| "@antfu/eslint-config": "^5.2.1", | ||
| "@types/node": "^24.3.0", | ||
| "bumpp": "^10.2.3", | ||
| "eslint": "^9.33.0", | ||
| "gensync": "1.0.0-beta.2", | ||
| "lint-staged": "^15.5.0", | ||
| "lint-staged": "^16.1.5", | ||
| "mitata": "^1.0.34", | ||
| "simple-git-hooks": "^2.11.1", | ||
| "tsx": "^4.19.3", | ||
| "typescript": "^5.8.2", | ||
| "unbuild": "^3.5.0", | ||
| "vite": "^6.2.2", | ||
| "vitest": "^3.0.9" | ||
| "simple-git-hooks": "^2.13.1", | ||
| "tsx": "^4.20.4", | ||
| "typescript": "^5.9.2", | ||
| "unbuild": "^3.6.1", | ||
| "vite": "^7.1.2", | ||
| "vitest": "^3.2.4" | ||
| }, | ||
@@ -90,3 +90,3 @@ "simple-git-hooks": { | ||
| "lint": "eslint .", | ||
| "release": "bumpp && pnpm publish", | ||
| "release": "bumpp", | ||
| "start": "tsx src/index.ts", | ||
@@ -93,0 +93,0 @@ "benchmark": "node scripts/benchmark.js", |
24588
2.96%277
0.73%