Constructors

  • Parameters

    • opts: {
          getMediaBaseUrl: (() => Promise<string>);
          iconDataStore: DataStore<"config",
              | "translation"
              | "projectSettings"
              | "preset"
              | "icon"
              | "field"
              | "deviceInfo">;
          iconDataType: DataType<DataStore<"config",
              | "translation"
              | "projectSettings"
              | "preset"
              | "icon"
              | "field"
              | "deviceInfo">, SQLiteTableWithColumns<{}>, "icon", {}, {}>;
      }
      • getMediaBaseUrl: (() => Promise<string>)
          • (): Promise<string>
          • Returns Promise<string>

      • iconDataStore: DataStore<"config",
            | "translation"
            | "projectSettings"
            | "preset"
            | "icon"
            | "field"
            | "deviceInfo">
      • iconDataType: DataType<DataStore<"config",
            | "translation"
            | "projectSettings"
            | "preset"
            | "icon"
            | "field"
            | "deviceInfo">, SQLiteTableWithColumns<{}>, "icon", {}, {}>

    Returns IconApi

Methods

  • Parameters

    Returns Promise<Buffer>

  • Parameters

    • icon: {
          name: string;
          variants: ((BitmapOpts | SvgOpts) & {
              blob: Buffer;
          })[];
      }

    Returns Promise<{}>

  • Parameters

    Returns Promise<string>