Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Apr 5, 2024
1 parent 52148d5 commit 7ac7c43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/scriptlets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ declare module '@adguard/scriptlets' {
*/
isAdgRedirectRule(rule: string): boolean;

/**
* Checks if the specified redirect resource is compatible with AdGuard
*
* @param redirectName - Redirect resource name to check
* @returns - true if the redirect resource is compatible with AdGuard
*/
isRedirectResourceCompatibleWithAdg(redirectName: string): boolean;

/**
* Checks if the `rule` is **valid** AdGuard redirect resource rule
*
Expand Down

0 comments on commit 7ac7c43

Please sign in to comment.