Skip to content
sern

module

module<T>(conf): Config<T>

A small wrapper to provide type inference. Create a Presence module which MUST be put in a file called presence.(language-extension) adjacent to the file where Sern.init is CALLED.

Type parameters

T extends keyof Dependencies[]

Parameters

conf: Config<T>

Returns

Config<T>

Source

src/core/presences.ts:28