This repository contains TypeScript type declarations for interacting with the Near Social VM. The types correspond to the API described in the Near API Documentation.
You can install these types using your preferred package manager:
npm install --save-dev near-social-vm-types
Once you've installed the near-social-vm-types package, you can import the types in your TypeScript files:
import type { State, Social, Near } from 'near-social-vm-types';
// Now you can use the imported types in your code
// For example:
const initialState: State.init = { /* initial state object */ };
State.init(initialState);
// And similarly for other namespaces like Social and Near
For more detailed information on the available types and their usage, you can refer to the Near API Documentation.
Contributions to improve and extend these TypeScript type declarations are welcome! If you find any discrepancies or missing types, feel free to submit a pull request.
This project is licensed under the MIT License.