tuil
ReferencePackages@mwillbanks/tuil-coreAPI

defineService

function exported by @mwillbanks/tuil-core.

View rawEdit

function

Public function exported by @mwillbanks/tuil-core.

export function defineService<const TId extends string, TValue>(
  definition: ServiceDefinition<TId, TValue>,
): ServiceDefinition<TId, TValue>;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
definitionServiceDefinition<TId, TValue>YesSupplies the definition value as ServiceDefinition<TId, TValue>.ServiceDefinition

Returns

ServiceDefinition<TId, TValue> — Returns a value that satisfies ServiceDefinition<TId, TValue>.

Related types: ServiceDefinition

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-core

On this page