rmapi-js
    Preparing search index...

    Interface SessionRules

    the part of chrome.declarativeNetRequest SocketAuthorization uses

    interface SessionRules {
        updateSessionRules(
            update: { addRules?: unknown[]; removeRuleIds?: number[] },
        ): Promise<void>;
    }
    Index
    • takes out the rules with these ids, then adds the given ones

      Parameters

      • update: { addRules?: unknown[]; removeRuleIds?: number[] }

      Returns Promise<void>