Configure Long
before requiring compiled protobuf
This commit is contained in:
parent
6d97976179
commit
e8651afa0b
4 changed files with 19 additions and 9 deletions
10
ts/protobuf/wrap.ts
Normal file
10
ts/protobuf/wrap.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as protobuf from 'protobufjs/minimal';
|
||||
import Long from 'long';
|
||||
|
||||
protobuf.util.Long = Long;
|
||||
protobuf.configure();
|
||||
|
||||
export default protobuf;
|
Loading…
Add table
Add a link
Reference in a new issue