public load()

in src/schema/loader.ts [26:33]


  public load (): Promise<Schema> {
    return fetch(this.url)
      .then((response) => response.arrayBuffer())
      .then((buffer) => new Uint8Array(buffer))
      .then((bytes) => FileDescriptorSet.decode(bytes) as any as IFileDescriptorSet)
      .then((descriptor) => buildRoot(descriptor))
      .then((root) => new Schema(root))
  }