@esportsplus/typescript 0.9.0 → 0.9.2
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/.github/dependabot.yml +2 -0
- package/.github/workflows/bump.yml +2 -0
- package/.github/workflows/dependabot.yml +12 -0
- package/.github/workflows/publish.yml +3 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/build/types.d.ts +0 -16
- package/build/types.js +0 -1
- package/src/types.ts +0 -36
package/.github/dependabot.yml
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
5
|
|
|
6
6
|
version: 2
|
|
7
|
+
|
|
7
8
|
registries:
|
|
8
9
|
npm-npmjs:
|
|
9
10
|
token: ${{secrets.NPM_TOKEN}}
|
|
10
11
|
type: npm-registry
|
|
11
12
|
url: https://registry.npmjs.org
|
|
13
|
+
|
|
12
14
|
updates:
|
|
13
15
|
- package-ecosystem: "npm"
|
|
14
16
|
directory: "/"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
name: publish to npm
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
release:
|
|
4
5
|
types: [published]
|
|
@@ -7,8 +8,9 @@ on:
|
|
|
7
8
|
workflows: [bump]
|
|
8
9
|
types:
|
|
9
10
|
- completed
|
|
11
|
+
|
|
10
12
|
jobs:
|
|
11
13
|
publish:
|
|
12
14
|
secrets:
|
|
13
|
-
|
|
15
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISHING }}
|
|
14
16
|
uses: esportsplus/workflows/.github/workflows/publish.yml@main
|
package/build/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
package/build/types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type Brand<T, B extends string> = T & {
|
|
2
|
-
__brand: B;
|
|
3
|
-
};
|
|
4
|
-
type DeepReadonly<T> = T extends (...args: any[]) => any ? T : T extends Array<infer R> ? ReadonlyArray<DeepReadonly<R>> : T extends object ? {
|
|
5
|
-
readonly [K in keyof T]: DeepReadonly<T[K]>;
|
|
6
|
-
} : T;
|
|
7
|
-
type Function = (...args: unknown[]) => Promise<unknown> | unknown;
|
|
8
|
-
type NeverAsync<T> = T extends Promise<unknown> ? never : T extends (...args: unknown[]) => unknown ? NeverAsync<ReturnType<T>> extends never ? never : T : T;
|
|
9
|
-
type NeverFunction<T> = T extends Promise<unknown> ? never : T extends (...args: unknown[]) => unknown ? never : T;
|
|
10
|
-
type Prettify<T> = {
|
|
11
|
-
[K in keyof T]: T[K];
|
|
12
|
-
} & {};
|
|
13
|
-
type UnionRecord<U, V extends Record<string, unknown>> = Prettify<U & {
|
|
14
|
-
[K in keyof U]?: undefined;
|
|
15
|
-
} & V>;
|
|
16
|
-
export type { Brand, DeepReadonly, Function, NeverAsync, NeverFunction, Prettify, UnionRecord };
|
package/build/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/src/types.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
type Brand<T, B extends string> = T & { __brand: B };
|
|
2
|
-
|
|
3
|
-
type DeepReadonly<T> = T extends (...args: any[]) => any
|
|
4
|
-
? T
|
|
5
|
-
: T extends Array<infer R>
|
|
6
|
-
? ReadonlyArray<DeepReadonly<R>>
|
|
7
|
-
: T extends object
|
|
8
|
-
? { readonly [K in keyof T]: DeepReadonly<T[K]> }
|
|
9
|
-
: T;
|
|
10
|
-
|
|
11
|
-
type Function = (...args: unknown[]) => Promise<unknown> | unknown;
|
|
12
|
-
|
|
13
|
-
type NeverAsync<T> =
|
|
14
|
-
T extends Promise<unknown>
|
|
15
|
-
? never
|
|
16
|
-
: T extends (...args: unknown[]) => unknown
|
|
17
|
-
? NeverAsync<ReturnType<T>> extends never
|
|
18
|
-
? never
|
|
19
|
-
: T
|
|
20
|
-
: T;
|
|
21
|
-
|
|
22
|
-
type NeverFunction<T> =
|
|
23
|
-
T extends Promise<unknown>
|
|
24
|
-
? never
|
|
25
|
-
: T extends (...args: unknown[]) => unknown
|
|
26
|
-
? never
|
|
27
|
-
: T;
|
|
28
|
-
|
|
29
|
-
type Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
|
-
|
|
33
|
-
type UnionRecord<U, V extends Record<string, unknown>> = Prettify<U & { [K in keyof U]?: undefined } & V>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export type { Brand, DeepReadonly, Function, NeverAsync, NeverFunction, Prettify, UnionRecord };
|