Skip to main content
Module

x/steam_trader/types/protobuf.d.ts>load

https://deno.land/x/steam_trader
Latest
function load
import { load } from "https://deno.land/x/steam_trader@v0.4.0/types/protobuf.d.ts";

Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.

Parameters

filename: (string | string[])

One or multiple files to load

root: Root

Root namespace, defaults to create a new one if omitted.

callback: LoadCallback

Callback function

Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.

Parameters

filename: (string | string[])

One or multiple files to load

callback: LoadCallback

Callback function

Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise.

Parameters

filename: (string | string[])

One or multiple files to load

optional
root: Root

Returns

Promise<Root>

Promise