@ts-type/bluebird 1.0.1

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 1.0.1 (2022-10-10)
7
+
8
+
9
+
10
+ ### đŸ”–ă€€Miscellaneous
11
+
12
+ * . ([ed63e32](https://github.com/bluelovers/ws-ts-type/commit/ed63e326e593f2aac0258db1c6cf15db3d73d943))
13
+ * . ([6368bcd](https://github.com/bluelovers/ws-ts-type/commit/6368bcd018310cf18b15d74173ab46d17ebd9c5d))
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # README.md
2
+
3
+
4
+
5
+ ## install
6
+
7
+ ```bash
8
+ yarn add @ts-type/bluebird
9
+ yarn-tool add @ts-type/bluebird
10
+ yt add @ts-type/bluebird
11
+ ```
12
+
package/index.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import Bluebird from 'bluebird';
2
+ import { ITSKeyOfRecordExtractToKey } from 'ts-type/lib/helper/record/pick-type';
3
+ import { ITSAnyFunction } from 'ts-type/lib/type/base';
4
+ import { ITSAwaitedReturnType } from 'ts-type/lib/helper/promise';
5
+ export type IBluebird<T> = Bluebird<T>;
6
+ export type ITSBluebird<T> = Bluebird<T>;
7
+ export type ITSWrapFunctionBluebird<T extends (...args: any[]) => any> = (...args: Parameters<T>) => IBluebird<ITSAwaitedReturnType<T>>;
8
+ export type ITSBluebirdPromisifyAll<T extends {
9
+ [p: string | symbol]: ITSAnyFunction;
10
+ }, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {
11
+ [P in K]: (...argv: Parameters<T[P]>) => IBluebird<ITSAwaitedReturnType<T[P]>>;
12
+ };
13
+ export type ITSPromisifyAll<T extends {
14
+ [p: string | symbol]: ITSAnyFunction;
15
+ }, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {
16
+ [P in K]: (...argv: Parameters<T[P]>) => Promise<ITSAwaitedReturnType<T[P]>>;
17
+ };
18
+ export type ITSResultArrayToBluebirdInspection<T> = T extends [infer T1, infer T2, infer T3, infer T4, infer T5] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>, Bluebird.Inspection<T5>] : T extends [infer T1, infer T2, infer T3, infer T4] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>] : T extends [infer T1, infer T2, infer T3] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>] : T extends [infer T1, infer T2] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>] : T extends [infer T1] ? [Bluebird.Inspection<T1>] : T extends (infer R)[] ? Bluebird.Inspection<R>[] : never;
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"","sourcesContent":["import Bluebird from 'bluebird';\n\nimport { ITSKeyOfRecordExtractToKey } from 'ts-type/lib/helper/record/pick-type';\nimport { ITSAnyFunction } from 'ts-type/lib/type/base';\nimport { ITSAwaitedReturnType } from 'ts-type/lib/helper/promise';\n\nexport type IBluebird<T> = Bluebird<T>;\nexport type ITSBluebird<T> = Bluebird<T>;\n\nexport type ITSWrapFunctionBluebird<T extends (...args: any[]) => any> =\n\t(...args: Parameters<T>) => IBluebird<ITSAwaitedReturnType<T>>;\n\nexport type ITSBluebirdPromisifyAll<T extends {\n\t[p: string | symbol]: ITSAnyFunction\n}, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {\n\t[P in K]: (...argv: Parameters<T[P]>) => IBluebird<ITSAwaitedReturnType<T[P]>>\n}\n\nexport type ITSPromisifyAll<T extends {\n\t[p: string | symbol]: ITSAnyFunction\n}, K extends ITSKeyOfRecordExtractToKey<T, Function> = ITSKeyOfRecordExtractToKey<T, Function>> = Omit<T, K> & {\n\t[P in K]: (...argv: Parameters<T[P]>) => Promise<ITSAwaitedReturnType<T[P]>>\n}\n\nexport type ITSResultArrayToBluebirdInspection<T> = T extends [infer T1, infer T2, infer T3, infer T4, infer T5]\n\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>, Bluebird.Inspection<T5>]\n\t: T extends [infer T1, infer T2, infer T3, infer T4]\n\t\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>, Bluebird.Inspection<T4>]\n\t\t: T extends [infer T1, infer T2, infer T3]\n\t\t\t? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>, Bluebird.Inspection<T3>]\n\t\t\t: T extends [infer T1, infer T2] ? [Bluebird.Inspection<T1>, Bluebird.Inspection<T2>] : T extends [infer T1]\n\t\t\t\t? [Bluebird.Inspection<T1>]\n\t\t\t\t: T extends (infer R)[] ? Bluebird.Inspection<R>[] : never;\n"]}
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@ts-type/bluebird",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "keywords": [
6
+ ".d.ts",
7
+ "@types",
8
+ "declaration",
9
+ "dev",
10
+ "develop",
11
+ "development",
12
+ "environment",
13
+ "ide",
14
+ "interface",
15
+ "node",
16
+ "playground",
17
+ "runtime",
18
+ "ts",
19
+ "type",
20
+ "type-level",
21
+ "typelevel",
22
+ "types",
23
+ "typescript",
24
+ "typing",
25
+ "typings",
26
+ "type-helprt",
27
+ "toolbox",
28
+ "toolbelt",
29
+ "create-by-yarn-tool"
30
+ ],
31
+ "homepage": "https://github.com/bluelovers/ws-ts-type/tree/master/packages/@ts-type/bluebird#readme",
32
+ "bugs": {
33
+ "url": "https://github.com/bluelovers/ws-ts-type/issues"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/bluelovers/ws-ts-type.git",
38
+ "directory": "packages/@ts-type/bluebird"
39
+ },
40
+ "license": "ISC",
41
+ "author": "bluelovers",
42
+ "sideEffects": false,
43
+ "main": "index.js",
44
+ "scripts": {
45
+ "review": "yarn run review:coverage",
46
+ "review:coverage": "yarn run lint && yarn run coverage",
47
+ "review:test": "yarn run lint && yarn run test",
48
+ "coverage": "yarn run test -- --coverage",
49
+ "lint": "yarn run lint:eslint",
50
+ "lint:eslint": "ynpx eslint --ext .ts,.tsx,.mts,.cts ./",
51
+ "pretest": "echo pretest",
52
+ "test": "echo \"Error: no test specified\"",
53
+ "test:jest": "jest --passWithNoTests",
54
+ "test:jest:snapshot": "yarn run test:jest -- -u",
55
+ "test:mocha": "ynpx --quiet -p ts-node -p mocha mocha -- --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
56
+ "test:snapshot": "yarn run test -- -u",
57
+ "test:tsd": "ynpx tsd",
58
+ "test:tsdx": "ynpx @bluelovers/tsdx test --passWithNoTests",
59
+ "build:dts:bundle": "ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner --inline-declare-global & echo build:dts:bundle",
60
+ "build:dts:copy": "copy .\\src\\index.d.ts .\\dist\\index.d.ts & echo build:dts",
61
+ "build:dts:tsc": "yarn run build:dts:tsc:emit && yarn run build:dts:copy",
62
+ "build:dts:tsc:emit": "tsc --emitDeclarationOnly --declaration --noEmit false",
63
+ "build:microbundle": "ynpx microbundle --target node",
64
+ "build:tsdx": "ynpx @bluelovers/tsdx build --target node --name index",
65
+ "ci:install": "echo ci:install",
66
+ "ci:build": "echo ci:build",
67
+ "preversion": "echo preversion && yarn run test",
68
+ "version": "echo version",
69
+ "postversion": "echo postversion",
70
+ "prepublish": "echo prepublish",
71
+ "prepare": "echo prepare",
72
+ "prepublishOnly": "echo prepublishOnly",
73
+ "prepublishOnly:update": "yarn run ncu && yarn run sort-package-json",
74
+ "prepack": "echo prepack",
75
+ "pack": "echo pack",
76
+ "postpack": "echo postpack",
77
+ "publish": "echo publish",
78
+ "postpublish": "echo postpublish",
79
+ "postpublishOnly": "echo postpublishOnly",
80
+ "ncu": "yarn-tool ncu -u",
81
+ "sort-package-json": "yarn-tool sort",
82
+ "tsc:showConfig": "ynpx get-current-tsconfig -p"
83
+ },
84
+ "dependencies": {
85
+ "@types/bluebird": "*",
86
+ "ts-type": "^3.0.1"
87
+ },
88
+ "packageManager": "yarn@1.22.19",
89
+ "publishConfig": {
90
+ "access": "public"
91
+ },
92
+ "gitHead": "fa34eea119b9bcbb363061ddffcfe9d78c2d0ddd"
93
+ }