Skip to main content
Version: 1.x

UseRateLimitDirectivePlugin

UseRateLimitDirectivePlugin​

Compiler plugin for the "use ratelimit" directive.

Signature
class UseRateLimitDirectivePlugin extends CommonDirectiveTransformer {
public readonly name = 'UseRateLimitDirectivePlugin';
constructor(options?: Partial<CommonDirectiveTransformerOptions>)
activate(ctx: CompilerPluginRuntime) => Promise<void>;
}

name​

property

constructor​

method
(options?: Partial<CommonDirectiveTransformerOptions>) => UseRateLimitDirectivePlugin

Create the directive compiler plugin with optional overrides.

activate​

method
(ctx: CompilerPluginRuntime) => Promise<void>

Activate the compiler plugin in the current build runtime.