UNPKG
dirigera
Version:
latest (2.0.0)
2.0.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
0.16.1
0.16.0
0.15.3
0.15.1
0.15.0
0.14.0
0.13.0
0.12.1
0.11.6
0.11.5
0.11.4
0.11.2
0.11.1
0.11.0
0.10.1
0.10.0
0.9.1
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.1.2
0.1.1
0.1.0
A TypeScript client for IKEA's DIRIGERA smart home hub
github.com/lpgera/dirigera
lpgera/dirigera
dirigera
/
src
/
api
/
music.ts
11 lines
(9 loc)
•
237 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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
>() }, } }