npm install @trinsic/trinsic
import { TrinsicService } from "@trinsic/trinsic";
If you have need to override the transport method (for instance, old versions of Node), you can do it in the following manner:
import { TransportProvider } from "@trinsic/trinsic";
TransportProvider.overrideTransport = XHRTransport(); // or other `nice-grpc-web` transports
// Proceed to make your SDK calls here
Install the following requirements:
- Node.js
- Powershell
-
protoc
compiler for your platform - installation info
npm run build:proto
After this, you can run npm ci
and npm run build
.
The build script will generate the proto files by running the Generate-Proto.ps1
script. You can also run this script manually.
- We use prettier for code formatting.