Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nervous-berries-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@arethetypeswrong/core": patch
---

Fix crash from missing optional chain
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export default defineCheck({
const host = context.hosts.findHostForFiles([typesFileName])!;
const typesSourceFile = host.getSourceFile(typesFileName)!;
ts.bindSourceFile(typesSourceFile, bindOptions);
const typesExports = typesSourceFile.symbol.exports;
const typesExports = typesSourceFile.symbol?.exports;
if (!typesExports) {
return;
}
const implementationSourceFile = host.getSourceFile(implementationFileName)!;
ts.bindSourceFile(implementationSourceFile, bindOptions);
const implExports = implementationSourceFile.symbol.exports;
const implExports = implementationSourceFile.symbol?.exports;
if (!implExports) {
return;
}
Expand Down
Binary file added packages/core/test/fixtures/[email protected]
Binary file not shown.
Loading