Skip to content

Type highlighting

Type

Promise<T | string | ArrayBuffer>
import { Type } from "~/components";
<Type text="Promise<T | string | ArrayBuffer>" />

MetaInfo

(default: false) optional
import { MetaInfo } from "~/components";
<MetaInfo text="(default: false) optional" />

Combined example

  • name string
    • The name of your service.
  • local boolean (default: true) optional
    • If the service should run locally or not.
import { Type, MetaInfo } from "~/components";
- `name` <Type text="string" />
- The name of your service.
- `local` <Type text="boolean" /> <MetaInfo text="(default: true) optional" />
- If the service should run locally or not.