@staffbar/types
v0.2.1
Published
Type definitions for StaffBar
Downloads
1
Readme
StaffBar RPC
This library provides the foundation for allowing the StaffBar "product" to communicate with the StaffBar "inject". The "product" is what you see when you use StaffBar, the request list, interface, etc. The "inject" is the Javascript which runs in the page's context and which is responsible for collecting & executing the network requests.
Although a little counter-intuative, the "inject" acts as a server and the "product" acts a the client. For example, the "product" will make a request to the "inject" to execute a network request in the page's javascript scope in order to have all cookies available.
Trouble shooting
src/fetch.ts:12:8 - error TS2307: Cannot find module '@staffbar/rpc-iframe' or its corresponding type declarations.
Make sure the workspaces
key in the root package.json
has all the workspaces and you've run npm install
in the root.