Skip to content

Commit 1f4415a

Browse files
committed
feat: add TS type defs
1 parent ae7699d commit 1f4415a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9578
-12141
lines changed

.babelrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = function (api) {
3+
const base = require('@jcoreio/toolchain-esnext/.babelrc.cjs')(api)
4+
return {
5+
...base,
6+
}
7+
}

.babelrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# created by @jcoreio/toolchain-circle
2+
3+
version: 2.1
4+
jobs:
5+
build:
6+
docker:
7+
- image: cimg/node:20.3.0
8+
9+
steps:
10+
- checkout
11+
- run:
12+
name: Setup NPM Token
13+
command: |
14+
npm config set \
15+
"//registry.npmjs.org/:_authToken=$NPM_TOKEN" \
16+
"registry=https://registry.npmjs.org/"
17+
- run:
18+
name: Corepack enable
19+
command: sudo corepack enable
20+
- run:
21+
name: Install Dependencies
22+
command: pnpm install --frozen-lockfile
23+
- run:
24+
name: Prepublish
25+
command: |
26+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
27+
- run:
28+
name: Release
29+
command: |
30+
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc release
31+
32+
workflows:
33+
build:
34+
jobs:
35+
- build:
36+
context:
37+
- npm-release
38+
- github-release

.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node, es2018 */
2+
module.exports = {
3+
extends: [require.resolve('@jcoreio/toolchain/eslint.config.cjs')],
4+
env: {
5+
es6: true,
6+
},
7+
}

.flowconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<PROJECT_ROOT>/node_modules/.*/tests?/.*\.json
77
<PROJECT_ROOT>/node_modules/immutable/dist/immutable.js.flow
88
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
9+
<PROJECT_ROOT>/node_modules/.*/es-abstract/.*
10+
<PROJECT_ROOT>/dist/.*
11+
.*/malformed_package_json/.*
12+
13+
[declarations]
14+
<PROJECT_ROOT>/node_modules/.*/redux-form/.*
915

1016
[include]
1117
./src

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
.eslintcache
1+
/dist
22
.nyc_output
3-
coverage
4-
es
5-
lib
63
node_modules
4+
/coverage

.mocharc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-env node, es2018 */
2+
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
3+
module.exports = {
4+
...base,
5+
}

.npmignore

Lines changed: 0 additions & 19 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

LICENSE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

flow-typed/npm/@babel/core_vx.x.x.js

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ declare module '@babel/core/lib/config/util.js' {
243243
declare module.exports: $Exports<'@babel/core/lib/config/util'>
244244
}
245245
declare module '@babel/core/lib/config/validation/option-assertions.js' {
246-
declare module.exports: $Exports<
247-
'@babel/core/lib/config/validation/option-assertions'
248-
>
246+
declare module.exports: $Exports<'@babel/core/lib/config/validation/option-assertions'>
249247
}
250248
declare module '@babel/core/lib/config/validation/options.js' {
251249
declare module.exports: $Exports<'@babel/core/lib/config/validation/options'>
@@ -266,9 +264,7 @@ declare module '@babel/core/lib/parse.js' {
266264
declare module.exports: $Exports<'@babel/core/lib/parse'>
267265
}
268266
declare module '@babel/core/lib/tools/build-external-helpers.js' {
269-
declare module.exports: $Exports<
270-
'@babel/core/lib/tools/build-external-helpers'
271-
>
267+
declare module.exports: $Exports<'@babel/core/lib/tools/build-external-helpers'>
272268
}
273269
declare module '@babel/core/lib/transform-ast.js' {
274270
declare module.exports: $Exports<'@babel/core/lib/transform-ast'>
@@ -283,22 +279,16 @@ declare module '@babel/core/lib/transform.js' {
283279
declare module.exports: $Exports<'@babel/core/lib/transform'>
284280
}
285281
declare module '@babel/core/lib/transformation/block-hoist-plugin.js' {
286-
declare module.exports: $Exports<
287-
'@babel/core/lib/transformation/block-hoist-plugin'
288-
>
282+
declare module.exports: $Exports<'@babel/core/lib/transformation/block-hoist-plugin'>
289283
}
290284
declare module '@babel/core/lib/transformation/file/file.js' {
291285
declare module.exports: $Exports<'@babel/core/lib/transformation/file/file'>
292286
}
293287
declare module '@babel/core/lib/transformation/file/generate.js' {
294-
declare module.exports: $Exports<
295-
'@babel/core/lib/transformation/file/generate'
296-
>
288+
declare module.exports: $Exports<'@babel/core/lib/transformation/file/generate'>
297289
}
298290
declare module '@babel/core/lib/transformation/file/merge-map.js' {
299-
declare module.exports: $Exports<
300-
'@babel/core/lib/transformation/file/merge-map'
301-
>
291+
declare module.exports: $Exports<'@babel/core/lib/transformation/file/merge-map'>
302292
}
303293
declare module '@babel/core/lib/transformation/index' {
304294
declare module.exports: $Exports<'@babel/core/lib/transformation'>
@@ -307,20 +297,14 @@ declare module '@babel/core/lib/transformation/index.js' {
307297
declare module.exports: $Exports<'@babel/core/lib/transformation'>
308298
}
309299
declare module '@babel/core/lib/transformation/normalize-file.js' {
310-
declare module.exports: $Exports<
311-
'@babel/core/lib/transformation/normalize-file'
312-
>
300+
declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-file'>
313301
}
314302
declare module '@babel/core/lib/transformation/normalize-opts.js' {
315-
declare module.exports: $Exports<
316-
'@babel/core/lib/transformation/normalize-opts'
317-
>
303+
declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-opts'>
318304
}
319305
declare module '@babel/core/lib/transformation/plugin-pass.js' {
320306
declare module.exports: $Exports<'@babel/core/lib/transformation/plugin-pass'>
321307
}
322308
declare module '@babel/core/lib/transformation/util/missing-plugin-helper.js' {
323-
declare module.exports: $Exports<
324-
'@babel/core/lib/transformation/util/missing-plugin-helper'
325-
>
309+
declare module.exports: $Exports<'@babel/core/lib/transformation/util/missing-plugin-helper'>
326310
}

flow-typed/npm/@babel/plugin-proposal-class-properties_vx.x.x.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ declare module '@babel/plugin-proposal-class-properties/lib' {
2828

2929
// Filename aliases
3030
declare module '@babel/plugin-proposal-class-properties/lib/index' {
31-
declare module.exports: $Exports<
32-
'@babel/plugin-proposal-class-properties/lib'
33-
>
31+
declare module.exports: $Exports<'@babel/plugin-proposal-class-properties/lib'>
3432
}
3533
declare module '@babel/plugin-proposal-class-properties/lib/index.js' {
36-
declare module.exports: $Exports<
37-
'@babel/plugin-proposal-class-properties/lib'
38-
>
34+
declare module.exports: $Exports<'@babel/plugin-proposal-class-properties/lib'>
3935
}

flow-typed/npm/@babel/plugin-proposal-export-default-from_vx.x.x.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ declare module '@babel/plugin-proposal-export-default-from/lib' {
2828

2929
// Filename aliases
3030
declare module '@babel/plugin-proposal-export-default-from/lib/index' {
31-
declare module.exports: $Exports<
32-
'@babel/plugin-proposal-export-default-from/lib'
33-
>
31+
declare module.exports: $Exports<'@babel/plugin-proposal-export-default-from/lib'>
3432
}
3533
declare module '@babel/plugin-proposal-export-default-from/lib/index.js' {
36-
declare module.exports: $Exports<
37-
'@babel/plugin-proposal-export-default-from/lib'
38-
>
34+
declare module.exports: $Exports<'@babel/plugin-proposal-export-default-from/lib'>
3935
}

flow-typed/npm/@babel/plugin-proposal-export-namespace-from_vx.x.x.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ declare module '@babel/plugin-proposal-export-namespace-from/lib' {
2828

2929
// Filename aliases
3030
declare module '@babel/plugin-proposal-export-namespace-from/lib/index' {
31-
declare module.exports: $Exports<
32-
'@babel/plugin-proposal-export-namespace-from/lib'
33-
>
31+
declare module.exports: $Exports<'@babel/plugin-proposal-export-namespace-from/lib'>
3432
}
3533
declare module '@babel/plugin-proposal-export-namespace-from/lib/index.js' {
36-
declare module.exports: $Exports<
37-
'@babel/plugin-proposal-export-namespace-from/lib'
38-
>
34+
declare module.exports: $Exports<'@babel/plugin-proposal-export-namespace-from/lib'>
3935
}

flow-typed/npm/@babel/plugin-proposal-object-rest-spread_vx.x.x.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ declare module '@babel/plugin-proposal-object-rest-spread/lib' {
2828

2929
// Filename aliases
3030
declare module '@babel/plugin-proposal-object-rest-spread/lib/index' {
31-
declare module.exports: $Exports<
32-
'@babel/plugin-proposal-object-rest-spread/lib'
33-
>
31+
declare module.exports: $Exports<'@babel/plugin-proposal-object-rest-spread/lib'>
3432
}
3533
declare module '@babel/plugin-proposal-object-rest-spread/lib/index.js' {
36-
declare module.exports: $Exports<
37-
'@babel/plugin-proposal-object-rest-spread/lib'
38-
>
34+
declare module.exports: $Exports<'@babel/plugin-proposal-object-rest-spread/lib'>
3935
}

flow-typed/npm/@babel/plugin-transform-runtime_vx.x.x.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ declare module '@babel/plugin-transform-runtime/lib' {
3232

3333
// Filename aliases
3434
declare module '@babel/plugin-transform-runtime/lib/definitions.js' {
35-
declare module.exports: $Exports<
36-
'@babel/plugin-transform-runtime/lib/definitions'
37-
>
35+
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib/definitions'>
3836
}
3937
declare module '@babel/plugin-transform-runtime/lib/index' {
4038
declare module.exports: $Exports<'@babel/plugin-transform-runtime/lib'>

flow-typed/npm/@babel/preset-env_vx.x.x.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ declare module '@babel/preset-env/lib/index.js' {
125125
declare module.exports: $Exports<'@babel/preset-env/lib'>
126126
}
127127
declare module '@babel/preset-env/lib/module-transformations.js' {
128-
declare module.exports: $Exports<
129-
'@babel/preset-env/lib/module-transformations'
130-
>
128+
declare module.exports: $Exports<'@babel/preset-env/lib/module-transformations'>
131129
}
132130
declare module '@babel/preset-env/lib/normalize-options.js' {
133131
declare module.exports: $Exports<'@babel/preset-env/lib/normalize-options'>
@@ -139,9 +137,7 @@ declare module '@babel/preset-env/lib/targets-parser.js' {
139137
declare module.exports: $Exports<'@babel/preset-env/lib/targets-parser'>
140138
}
141139
declare module '@babel/preset-env/lib/use-built-ins-entry-plugin.js' {
142-
declare module.exports: $Exports<
143-
'@babel/preset-env/lib/use-built-ins-entry-plugin'
144-
>
140+
declare module.exports: $Exports<'@babel/preset-env/lib/use-built-ins-entry-plugin'>
145141
}
146142
declare module '@babel/preset-env/lib/use-built-ins-plugin.js' {
147143
declare module.exports: $Exports<'@babel/preset-env/lib/use-built-ins-plugin'>

0 commit comments

Comments
 (0)