Skip to content

🔌 TypeScript wrapper for the shikimori.org API with type definition

License

Notifications You must be signed in to change notification settings

cawa-93/typescript-shikimori

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example usage with types

import { Shikimori, types } from 'typescript-shikimori'

const client = new Shikimori()

async function main () {
  const params: types.animes.index.request = {}
  const { data } = await client.get<types.animes.index.response>('animes', { params })
}

Example usage with types alias

import { Shikimori, types } from 'typescript-shikimori'

// create aliases
import requestType = types.animes.index.request
import responseType = types.animes.index.response

const client = new Shikimori()

async function main() {
  const params: requestType = {}
  const { data } = await client.get<responseType>('animes', { params })
}

About

🔌 TypeScript wrapper for the shikimori.org API with type definition

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.0%
  • JavaScript 29.0%