Skip to content

Commit

Permalink
dx: add watch task to expose all compile errors to vscode, including …
Browse files Browse the repository at this point in the history
…not open files.
  • Loading branch information
patroza committed Oct 3, 2024
1 parent b00f7a0 commit a504cb4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Watch",
"type": "shell",
"command": "pnpm check -w",
"options": {
"cwd": "${workspaceRoot}"
},
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
"presentation": {
"group": "watch-build"
},
"problemMatcher": [
{
"base": "$tsc-watch",
"fileLocation": [
"relative",
"${workspaceRoot}",
],
}
]
}
]
}
6 changes: 3 additions & 3 deletions packages/platform/src/Headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const isHeaders = (u: unknown): u is Headers => Predicate.hasProperty(u,
*/
export interface Headers {
readonly [HeadersTypeId]: HeadersTypeId
readonly [key: string]: string
readonly [key: string]: Redacted.Redacted<string> | string
}

const Proto = Object.assign(Object.create(null), {
Expand Down Expand Up @@ -207,11 +207,11 @@ export const remove: {
export const redact: {
(
key: string | RegExp | ReadonlyArray<string | RegExp>
): (self: Headers) => Record<string, string | Redacted.Redacted>
): (self: Headers) => Record<string, string>
(
self: Headers,
key: string | RegExp | ReadonlyArray<string | RegExp>
): Record<string, string | Redacted.Redacted>
): Record<string, string>
} = dual(
2,
(
Expand Down

0 comments on commit a504cb4

Please sign in to comment.