Function api

  • Shortcut function to create a RsterApi object.

    Type Parameters

    • NAME extends string

    • MODULES extends {
          [key: string]: RsterApiModule<typeof key, any, any>;
      }

    • METHODS extends {
          [key: string]: AnyRsterApiMethod<typeof key>;
      }

    Parameters

    • name: NAME

      The name of the api.

    • description: string[]

      The description of the api.

    • modules: MODULES

      The modules of the api.

    • methods: METHODS

      The methods of the api.

    Returns RsterApi<NAME, MODULES, METHODS>

    A new RsterApi object.

Generated using TypeDoc