@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.
@@ -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,7 +1,9 @@
1
1
  name: bump
2
+
2
3
  on:
3
4
  push:
4
5
  branches: '**' # only trigger on branches, not on tags
6
+
5
7
  jobs:
6
8
  bump:
7
9
  uses: esportsplus/workflows/.github/workflows/bump.yml@main
@@ -0,0 +1,12 @@
1
+ name: dependabot automerge
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, labeled]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ automerge:
10
+ secrets:
11
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12
+ uses: esportsplus/workflows/.github/workflows/dependabot.yml@main
@@ -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
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN_PUBLISHING }}
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 * from './types.js';
1
+ export {};
package/build/index.js CHANGED
@@ -1 +1 @@
1
- export * from './types.js';
1
+ export {};
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "private": false,
25
25
  "type": "module",
26
26
  "types": "build/index.d.ts",
27
- "version": "0.9.0",
27
+ "version": "0.9.2",
28
28
  "scripts": {
29
29
  "build": "tsc && tsc-alias",
30
30
  "-": "-"
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 };