@dxos/app-framework - v0.10.0
    Preparing search index...

    Variable makeConst

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

    Helper to define the interface of a capability. Static NSID strings are validated at compile time via DXN.Name.

    Type declaration

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

        • T
        • S extends string = string

        Parameters

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

        Returns Capability.InterfaceDef<T>