1 | // Copyright (c) .NET Foundation. All rights reserved.
|
2 | // Licensed under the MIT License.
|
3 |
|
4 | export function isTrigger(typeName: string | undefined | null): boolean {
|
5 | return !!typeName && /trigger$/i.test(typeName);
|
6 | }
|
7 |
|
8 | export function isHttpTrigger(typeName: string | undefined | null): boolean {
|
9 | return typeName?.toLowerCase() === 'httptrigger';
|
10 | }
|
11 |
|
12 | export function isTimerTrigger(typeName: string | undefined | null): boolean {
|
13 | return typeName?.toLowerCase() === 'timertrigger';
|
14 | }
|