Skip to content

Commit 670f4a7

Browse files
authored
Misc fixes (#1244)
1 parent 730afb9 commit 670f4a7

6 files changed

Lines changed: 15 additions & 8 deletions

File tree

.changeset/khaki-nails-hear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@definitelytyped/utils": patch
3+
---
4+
5+
Remove unused type param from misc functions

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
env:
10-
NODE_VERSION: '18.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)
10+
NODE_VERSION: '20.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)
1111
RESOURCE_GROUP_NAME: dtmergebot3
1212
FUNCTION_APP_NAME: dtmergebot3
1313
STORAGE_ACCOUNT_NAME: dtmergebot3b1b7

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
]
4646
},
4747
"ignoredBuiltDependencies": [
48+
"@parcel/watcher",
4849
"core-js",
4950
"core-js-pure",
5051
"unrs-resolver",

packages/typescript-packages/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"rootDir": "src",
55
"outDir": "dist"
66
},
7-
"include": ["src"]
7+
"include": ["src"],
8+
"references": [{ "path": "../typescript-versions" }]
89
}

packages/utils/src/miscellany.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import crypto from "crypto";
22
import { Minimatch } from "minimatch";
33

4-
export function tryParseJson<T>(text: string): unknown;
4+
export function tryParseJson(text: string): unknown;
55
export function tryParseJson<T>(text: string, predicate: (parsed: unknown) => parsed is T): T | undefined;
66
export function tryParseJson<T>(text: string, predicate?: (parsed: unknown) => parsed is T) {
77
try {
@@ -11,7 +11,7 @@ export function tryParseJson<T>(text: string, predicate?: (parsed: unknown) => p
1111
}
1212
}
1313

14-
export function parseJson<T>(text: string): unknown;
14+
export function parseJson(text: string): unknown;
1515
export function parseJson<T>(text: string, predicate?: (parsed: unknown) => parsed is T): T;
1616
export function parseJson<T>(text: string, predicate: (parsed: unknown) => parsed is T = (_): _ is T => true) {
1717
let parsed: unknown;

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)