diff --git a/README.md b/README.md index 05e8b052..bb747fb8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,19 @@ Please refer to our [Getting Started Guide](https://docs.neynar.com/reference/ge Checkout [examples](https://github.com/neynarxyz/farcaster-examples) using this SDK +## Type Definitions + +You can directly import the type definitions from the SDK as shown below: + +- See your `node_modules/@neynar/nodejs-sdk/build/neynar-api/v2/openapi-farcaster` directory for the type definitions. + +```typescript +import { type User } from '@neynar/nodejs-sdk/build/neynar-api/v2/openapi-farcaster/models/user' +import { type CastAuthor } from '@neynar/nodejs-sdk/build/neynar-api/v2/openapi-farcaster/models/cast-author' +import { type CastWithInteractionsReactions } from '@neynar/nodejs-sdk/build/neynar-api/v2/openapi-farcaster/models/cast-with-interactions-reactions' + +``` + ## Contribution Guidelines see [CONTRIBUTING.md](./CONTRIBUTING.md).