- api<NAME, MODULES, METHODS>(name, description, modules, methods): RsterApi<NAME, MODULES, METHODS>
Type Parameters
NAME extends string
MODULES extends {
[key: string]: RsterApiModule<typeof key, any, any>;
}
METHODS extends {
[key: string]: AnyRsterApiMethod<typeof key>;
}
Parameters
name: NAME
description: string[]
modules: MODULES
methods: METHODS
Returns RsterApi<NAME, MODULES, METHODS>
A new RsterApi object.
Shortcut function to create a RsterApi object.