Socket
Book a DemoInstallSign in
Socket

@gw2api/types

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gw2api/types

TypeScript types for all datastructures used by the Guild Wars 2 API

0.0.34
Source
npmnpm
Version published
Weekly downloads
539
-25.14%
Maintainers
1
Weekly downloads
 
Created
Source

@gw2api/types

TypeScript types for all datastructures used by the Guild Wars 2 API.

Usage

You can use this library to add strong types when working with the Guild Wars 2 API and not using @gw2api/fetch or @gw2api/client, for example when using your own api client, working with data from a database, or writing helper functions.

import type { Gw2Api, EndpointType } from '@gw2api/types';

function getItemName(item: Gw2Api.V2.Item) {
  return item.name;
}

type ItemEndpointResponse = EndpointType<'/v2/items?ids=1,2,3'>;
// -> Array<{ id: number, name: string, ... }>

Installation

npm i @gw2api/types

Contributing

See parent readme.

License

Licensed under the MIT License.

Keywords

gw2api

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.