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 2, 2024
1 parent b00f7a0 commit f7a08ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
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}",
],
}
]
}
]
}
2 changes: 1 addition & 1 deletion 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

0 comments on commit f7a08ef

Please sign in to comment.