0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00

Node: use 'Native' to refer to the loaded Rust library

Specifically, use 'NativeImpl' to refer to the run-time bindings
(instead of 'SC'), and 'Native' to refer to the TypeScript module for
those bindings (instead of 'SignalClient'). This makes
compile-time diagnostics clearer, since the overall Node package is
named 'signal-client'.
This commit is contained in:
Jordan Rose 2021-03-11 15:58:23 -08:00
parent 2b8c797a58
commit a37295e3a8
5 changed files with 263 additions and 224 deletions

View File

@ -1,2 +1,2 @@
node/dist/**
node/libsignal_client.d.ts
node/Native.d.ts

File diff suppressed because it is too large Load Diff

View File

@ -158,7 +158,7 @@ decls = itertools.chain(
collect_decls(os.path.join(our_abs_dir, '..')),
collect_decls(os.path.join(our_abs_dir, '..', '..', 'shared'), features='node'))
output_file_name = 'libsignal_client.d.ts'
output_file_name = 'Native.d.ts'
contents = open(os.path.join(our_abs_dir, output_file_name + '.in')).read()
contents += "\n"
contents += "\n".join(sorted(decls))