- Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrors.ts
28 lines (22 loc) · 645 Bytes
/
errors.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import{CrossTabClient}from'@logux/client'
import{createApp}from'vue'
import{devtools}from'./index.js'
letclient=newCrossTabClient({
server: 'wss://localhost:1337',
subprotocol: '1.0.0',
userId: '10'
})
letapp=createApp({
template: '<div></div>'
})
app.use(devtools)
devtools.install(app,client,{
layers: {
// THROWS Type 'string' is not assignable to type 'boolean | undefined'.
user: "true"
},
// THROWS Type 'string' is not assignable to type 'string[] | undefined'.
ignoreActions: 'user/add'
})
// THROWS Property 'logux' does not exist on type 'DevtoolsPluginApi'.
devtools.api?.logux()