@dxos/echo
    Preparing search index...

    Variable makeConst

    make: <T extends string>(
        nsid: [Name<T>] extends [never]
            ? `Invalid NSID "${T}": final segment must be camelCase (no hyphens)`
            : T,
        version?: string,
    ) => DXN.DXN

    Constructs a DXN from an NSID (and optional version). Throws if the result is not a valid DXN. Use tryMake for non-throwing string parsing.

    Static NSID strings are validated at compile time via Name: the final segment must be camelCase (no hyphens). Template-literal strings with a runtime prefix are accepted here but still validated at runtime.

    Type declaration

      • <T extends string>(
            nsid: [Name<T>] extends [never]
                ? `Invalid NSID "${T}": final segment must be camelCase (no hyphens)`
                : T,
            version?: string,
        ): DXN.DXN
      • Type Parameters

        • T extends string

        Parameters

        • nsid: [Name<T>] extends [never]
              ? `Invalid NSID "${T}": final segment must be camelCase (no hyphens)`
              : T
        • Optionalversion: string

        Returns DXN.DXN

    make('org.dxos.type.calendar') → 'dxn:org.dxos.type.calendar'
    
    make('org.dxos.type.calendar', '1.0.0') → 'dxn:org.dxos.type.calendar:1.0.0'