Add class instantiation in readme. (#95)

This commit is contained in:
Dessalines 2022-12-11 12:00:05 -05:00 committed by GitHub
parent 60c5c85cd7
commit b1b087a26f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 22 deletions

View file

@ -31,23 +31,3 @@ steps:
when:
ref:
- 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

View file

@ -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));
```