als-unhooked
    Preparing search index...

    Function getOrCreateNamespace

    • Retrieves an existing namespace by name or creates a new one if it doesn't exist.

      Type Parameters

      Parameters

      • name: string

        The name of the namespace.

      Returns Namespace<keyof T, T[keyof T]>

      The retrieved or created namespace.

      const ns = getOrCreateNamespace('myNamespace');
      
    • Retrieves an existing namespace by name or creates a new one if it doesn't exist.

      Type Parameters

      • K = any
      • V = any

      Parameters

      • name: string

        The name of the namespace.

      Returns Namespace<K, V>

      The retrieved or created namespace.

      const ns = getOrCreateNamespace('myNamespace');