1.0.1 • Published 6 months ago
@realgolfgames/types v1.0.1
@realgolfgames/types
TypeScript definitions for the RealGolf.Games API, making it easy for developers to integrate with our services.
Installation
Install the package using your preferred package manager:
npm
npm install @realgolfgames/typespnpm
pnpm add @realgolfgames/typesyarn
yarn add @realgolfgames/typesUsage
Import the types you need from the package:
import { ReturnedBlog } from '@realgolfgames/types';
const { blogs }: { blogs: ReturnedBlog[] } = await fetch(
'https://api.realgolf.games/blogs'
).then((res) => res.json());Features
- Centralized Types: Avoid duplicating TypeScript definitions across projects.
- Versioned Updates: Stay up-to-date with changes to RealGolf.Games APIs.
- Developer-Friendly: Strongly typed definitions ensure fewer errors and better code completion in IDEs.
Documentation
License
This package is licensed under the MIT License.