vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias NamingConvention

    Naming convention configuration. Enforces a regex pattern on action names at register and dispatch time.

    type NamingConvention = {
        pattern: RegExp;
        onViolation?: "warn" | "throw" | "ignore";
    }
    Index

    Properties

    pattern: RegExp

    Regex pattern that action names must match

    onViolation?: "warn" | "throw" | "ignore"

    What to do on violation: 'warn' logs, 'throw' throws, 'ignore' skips