@adviser/cement - v0.0.0
    Preparing search index...

    Function isAppContext

    • Type guard to check if a value is an AppContext instance.

      Parameters

      • ctx: unknown

        Value to check

      Returns ctx is AppContext

      True if value is an AppContext instance

      const ctx = new AppContext();
      if (isAppContext(ctx)) {
      ctx.set('key', 'value');
      }