mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-01 16:51:12 +00:00
Add class instantiation in readme. (#95)
This commit is contained in:
parent
60c5c85cd7
commit
b1b087a26f
2 changed files with 2 additions and 22 deletions
20
.drone.yml
20
.drone.yml
|
@ -31,23 +31,3 @@ steps:
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/*
|
- refs/tags/*
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: arm64
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: arm64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: yarn
|
|
||||||
image: node:17-alpine
|
|
||||||
commands:
|
|
||||||
- yarn
|
|
||||||
|
|
||||||
- name: yarn lint
|
|
||||||
image: node:17-alpine
|
|
||||||
commands:
|
|
||||||
- yarn lint
|
|
||||||
|
|
|
@ -25,10 +25,10 @@ import { Login, LemmyWebsocket } from 'lemmy-js-client';
|
||||||
|
|
||||||
let client: LemmyWebsocket = new LemmyWebsocket();
|
let client: LemmyWebsocket = new LemmyWebsocket();
|
||||||
|
|
||||||
let form: Login {
|
let form = new Login({
|
||||||
username_or_email: "my_email@email.tld",
|
username_or_email: "my_email@email.tld",
|
||||||
password: "my_pass",
|
password: "my_pass",
|
||||||
};
|
});
|
||||||
|
|
||||||
this.ws.send(client.login(form));
|
this.ws.send(client.login(form));
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue