Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grpc_basic/proto.ts>Root#load

Very basic gRPC implementation for Deno
Latest
method Root.prototype.load
Re-export
import { Root } from "https://deno.land/x/grpc_basic@0.4.7/proto.ts";

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

Parameters

filename: (string | string[])

Names of one or multiple files to load

options: IParseOptions

Parse options

callback: LoadCallback

Callback function

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

Parameters

filename: (string | string[])

Names of one or multiple files to load

callback: LoadCallback

Callback function

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

Parameters

filename: (string | string[])

Names of one or multiple files to load

optional
options: IParseOptions

Parse options. Defaults to parse.defaults when omitted.

Returns

Promise<Root>

Promise