mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-04 18:21:12 +00:00
Add class instantiation in readme.
This commit is contained in:
parent
60c5c85cd7
commit
fae96e319c
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ import { Login, LemmyWebsocket } from 'lemmy-js-client';
|
|||
|
||||
let client: LemmyWebsocket = new LemmyWebsocket();
|
||||
|
||||
let form: Login {
|
||||
let form = new Login({
|
||||
username_or_email: "my_email@email.tld",
|
||||
password: "my_pass",
|
||||
};
|
||||
});
|
||||
|
||||
this.ws.send(client.login(form));
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue