@thetimes/times-public-api-types
TypeScript icon, indicating that this package has built-in type declarations

1.0.7051 • Public • Published

@thetimes/times-public-api-types

This module contains the TypeScript definitions for the Times Public API's GraphQL types. The names of the types match the names in the GraphQL API.

Usage

import { Article } from "@thetimes/times-public-api-types";

interface TPAClient {
  getArticle(articleId: string): Promise<Article>;
}

Known issues

You may need to import at least 1 type manually from this package to your project before the auto-import suggestions start working.

Readme

Keywords

none

Package Sidebar

Install

npm i @thetimes/times-public-api-types

Weekly Downloads

3,231

Version

1.0.7051

License

ISC

Unpacked Size

62.4 kB

Total Files

105

Last publish

Collaborators

  • marcincuber
  • newsuk
  • tnlweb