Skip to content

Commit c296e8e

Browse files
committed
chore: fix unification, improve empty
1 parent 830713a commit c296e8e

File tree

21 files changed

+186
-167
lines changed

21 files changed

+186
-167
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@
3131
},
3232
"packageManager": "[email protected]",
3333
"devDependencies": {
34-
"@babel/cli": "^7.18.9",
35-
"@babel/core": "^7.18.9",
34+
"@babel/cli": "^7.18.10",
35+
"@babel/core": "^7.18.10",
3636
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
3737
"@changesets/changelog-github": "^0.4.6",
3838
"@changesets/cli": "^2.24.1",
3939
"@effect-ts/build-utils": "0.40.3",
4040
"@effect-ts/core": "^0.60.2",
4141
"@repo-tooling/eslint-plugin-dprint": "^0.0.4",
42-
"@tsplus/installer": "0.0.128",
43-
"@types/node": "^18.6.2",
42+
"@tsplus/installer": "0.0.132",
43+
"@types/node": "^18.6.3",
4444
"@types/rimraf": "^3.0.2",
45-
"@typescript-eslint/eslint-plugin": "^5.31.0",
46-
"@typescript-eslint/parser": "^5.31.0",
45+
"@typescript-eslint/eslint-plugin": "^5.32.0",
46+
"@typescript-eslint/parser": "^5.32.0",
4747
"babel-plugin-annotate-pure-calls": "^0.4.0",
4848
"babel-plugin-replace-import-extension": "^1.1.3",
4949
"c8": "^7.12.0",
5050
"concurrently": "^7.3.0",
5151
"cpx": "^1.5.0",
52-
"eslint": "^8.20.0",
53-
"eslint-import-resolver-typescript": "^3.3.0",
52+
"eslint": "^8.21.0",
53+
"eslint-import-resolver-typescript": "^3.4.0",
5454
"eslint-plugin-codegen": "0.16.1",
5555
"eslint-plugin-import": "^2.26.0",
5656
"eslint-plugin-simple-import-sort": "^7.0.0",
@@ -60,8 +60,8 @@
6060
"rimraf": "^3.0.2",
6161
"typescript": "^4.7.4",
6262
"ultra-runner": "^3.10.5",
63-
"vite": "^3.0.3",
64-
"vitest": "0.19.1"
63+
"vite": "^3.0.4",
64+
"vitest": "0.20.3"
6565
},
6666
"resolutions": {
6767
"eslint-plugin-codegen": "patch:eslint-plugin-codegen@npm:0.16.1#.yarn/patches/eslint-plugin-codegen-npm-0.16.1-87770191cd"

packages/stdlib/_src/collections/Chunk/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { _Empty } from "@tsplus/stdlib/collections/Chunk/definition"
55
*
66
* @tsplus static Chunk.Ops empty
77
*/
8-
export function empty<A>(): Chunk<A> {
8+
export function empty<A = never>(): Chunk<A> {
99
return _Empty
1010
}

packages/stdlib/_src/collections/HashMap/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { EmptyNode } from "@tsplus/stdlib/collections/HashMap/_internal/node"
66
*
77
* @tsplus static HashMap.Ops empty
88
*/
9-
export function empty<K, V>(): HashMap<K, V> {
9+
export function empty<K = never, V = never>(): HashMap<K, V> {
1010
return new HashMapInternal<K, V>(false, 0, new EmptyNode(), 0)
1111
}

packages/stdlib/_src/collections/HashMap/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export { Node } from "@tsplus/stdlib/collections/HashMap/_internal/node"
2020
/**
2121
* @tsplus static HashMap.Node.Ops empty
2222
*/
23-
export function emptyNode<K, V>(): Node<K, V> {
23+
export function emptyNode<K = never, V = never>(): Node<K, V> {
2424
return new EmptyNode()
2525
}
2626

packages/stdlib/_src/collections/HashSet/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { HashSetInternal } from "@tsplus/stdlib/collections/HashSet/_internal/ha
33
/**
44
* @tsplus static HashSet.Ops empty
55
*/
6-
export function empty<A>(): HashSet<A> {
6+
export function empty<A = never>(): HashSet<A> {
77
return new HashSetInternal(HashMap.empty<A, unknown>())
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @tsplus static ImmutableArray.Ops empty
33
*/
4-
export function empty<A>(): ImmutableArray<A> {
4+
export function empty<A = never>(): ImmutableArray<A> {
55
return new ImmutableArray([])
66
}

packages/stdlib/_src/collections/ImmutableMap/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
*
44
* @tsplus static ImmutableMap.Ops empty
55
*/
6-
export function empty<K, V>(): ImmutableMap<K, V> {
6+
export function empty<K = never, V = never>(): ImmutableMap<K, V> {
77
return new ImmutableMap(new Map())
88
}

packages/stdlib/_src/collections/ImmutableQueue/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { ImmutableQueueInternal } from "@tsplus/stdlib/collections/ImmutableQueu
33
/**
44
* @tsplus static ImmutableQueue.Ops empty
55
*/
6-
export function empty<A>(): ImmutableQueue<A> {
6+
export function empty<A = never>(): ImmutableQueue<A> {
77
return new ImmutableQueueInternal(List.nil())
88
}

packages/stdlib/_src/collections/List/empty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
*
44
* @tsplus static List.Ops empty
55
*/
6-
export function empty<A>(): List<A> {
6+
export function empty<A = never>(): List<A> {
77
return List.nil()
88
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @tsplus static Map.Ops empty
33
*/
4-
export function empty<K, V>(): Map<K, V> {
4+
export function empty<K = never, V = never>(): Map<K, V> {
55
return new Map<K, V>()
66
}

0 commit comments

Comments
 (0)