Skip to content

Commit

Permalink
fix(specs): task trigger guard import order (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 authored Apr 12, 2023
1 parent 37592f0 commit 69aac53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/javascript/clients/client/api/guards.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @param trigger - The given Task Trigger.
*/
export function isOnDemandTrigger(
trigger: Trigger | TaskCreateTrigger
trigger: TaskCreateTrigger | Trigger
): trigger is OnDemandTrigger {
return trigger.type === 'onDemand';
}
Expand All @@ -17,7 +17,7 @@ export function isOnDemandTrigger(
* @param trigger - The given Task Trigger.
*/
export function isScheduleTrigger(
trigger: Trigger | TaskCreateTrigger
trigger: TaskCreateTrigger | Trigger
): trigger is ScheduleTrigger {
return trigger.type === 'schedule';
}
Expand All @@ -29,7 +29,7 @@ export function isScheduleTrigger(
* @param trigger - The given Task Trigger.
*/
export function isSubscriptionTrigger(
trigger: Trigger | TaskCreateTrigger
trigger: TaskCreateTrigger | Trigger
): trigger is SubscriptionTrigger {
return trigger.type === 'subscription';
}

0 comments on commit 69aac53

Please sign in to comment.