We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a00617e commit 967f10aCopy full SHA for 967f10a
3 files changed
.github/workflows/deno.yml
@@ -20,7 +20,7 @@ jobs:
20
21
strategy:
22
matrix:
23
- deno: ["v1.41.1"]
+ deno: ["v2.2.12"]
24
os: [ubuntu-latest]
25
26
steps:
deno.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@baetheus/fun",
3
- "version": "2.2.2",
+ "version": "2.3.0",
4
"exports": {
5
"./ideas/dux": "./ideas/dux.ts",
6
"./applicable": "./applicable.ts",
newtype.ts
@@ -44,7 +44,7 @@ const ValueSymbol = Symbol("Value");
44
* const int = 1 as Integer;
45
* const num = 1 as number;
46
*
47
- * declare function addOne(n: Integer): number;
+ * const addOne = (n: Integer): number => (n as unknown as number) + 1;
48
49
* addOne(int); // This is ok!
50
* // addOne(num); // This is not
0 commit comments