-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
Type: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIstypescriptRelevant to TypeScript users onlyRelevant to TypeScript users only
Description
I get TS2367: This condition will always return 'false' since the types '"check_run.completed" | "code_scanning_alert.fixed"' and '"check_run"' have no overlap.
from the following since 7.22.0/#406:
on(["check_run.completed", "code_scanning_alert.fixed"], (event) => {
if (event.name === "check_run") {
console.log(`a run was ${event.payload.action}!`);
}
});
I confirmed this wasn't an error in 7.21.0.
Thanks for the work in #406 to upgrade the types! ❤️
Metadata
Metadata
Assignees
Labels
Type: SupportAny questions, information, or general needs around the SDK or GitHub APIsAny questions, information, or general needs around the SDK or GitHub APIstypescriptRelevant to TypeScript users onlyRelevant to TypeScript users only