UNPKG

dirigera

Version:

A TypeScript client for IKEA's DIRIGERA smart home hub

11 lines (9 loc) 237 B
import type { Got } from 'got' with { 'resolution-mode': 'require' } import type { Music } from '../types/Music' export default (got: Got) => { return { async get() { return await got.get(`music`).json<Music>() }, } }