-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure ts so it doesnt error on lib types, allowing it to be enabl…
…ed precommit (or in ci) (#37) * Configure ts so it doesnt error on lib types, allowing it to be enabled on precommit hook * Fix bad rebase / syntax error --------- Co-authored-by: Cal Irvine <[email protected]> Co-authored-by: Ben Vinegar <[email protected]>
- Loading branch information
1 parent
71b54e3
commit 7818688
Showing
5 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ echo "$FILES" | xargs git add | |
|
||
npm test | ||
npm run lint | ||
npm run typecheck | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,10 @@ export default async function handleRequest( | |
// free to delete this parameter in your app if you're not using it! | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
loadContext: AppLoadContext, | ||
loadContext: AppLoadContext | ||
) { | ||
const body = await renderToReadableStream( | ||
// @ts-expect-error This is a mistake in the package types, resolved in @remix-run/[email protected] | ||
<RemixServer context={remixContext} url={request.url} />, | ||
{ | ||
signal: request.signal, | ||
|
@@ -30,7 +31,7 @@ export default async function handleRequest( | |
console.error(error); | ||
responseStatusCode = 500; | ||
}, | ||
}, | ||
} | ||
); | ||
|
||
if (isbot(request.headers.get("user-agent"))) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters