This package provides a shared collection of TypeScript types, utility functions, parameters, and JSON schemas for DAppNode projects.
To add this package as a dependency in your project, use the following command:
npm install @dappnode/types
To utilize the shared types, utility functions, parameters, and JSON schemas in your project, simply import them as needed:
import { MyType, myUtilityFunction, myParameter } from "@dappnode/types";
This package is organized as follows:
src/types
: Contains the shared TypeScript types.src/utils
: Contains the shared utility functions.src/params
: Contains the shared parameters.src/schemas
: Contains the shared JSON schemas.
-
Fork the repository and clone it to your local machine.
-
Navigate to the project directory and install the dependencies:
npm install
-
Make your changes or additions to the code.
-
Build the project:
npm run build
-
Commit and push your changes to your fork.
-
Open a pull request to the main repository.
This project is licensed under the MIT License. See the LICENSE file for more information.