summaryrefslogtreecommitdiff
path: root/docs/guide/typescript
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guide/typescript')
-rw-r--r--docs/guide/typescript/binding.md6
-rw-r--r--docs/guide/typescript/utilities.md4
-rw-r--r--docs/guide/typescript/variable.md4
3 files changed, 7 insertions, 7 deletions
diff --git a/docs/guide/typescript/binding.md b/docs/guide/typescript/binding.md
index 05645ab..15fe3cc 100644
--- a/docs/guide/typescript/binding.md
+++ b/docs/guide/typescript/binding.md
@@ -25,11 +25,11 @@ or an object implementing the `Connectable` interface and one of its properties
(usually a `GObject.Object` instance).
```ts
-function bind<T>(obj: Subscribable): Binding<T>
+function bind<T>(obj: Subscribable<T>): Binding<T>
function bind<
- Obj extends Connectable,
- Prop extends keyof Obj,
+ Obj extends Connectable,
+ Prop extends keyof Obj,
>(obj: Obj, prop: Prop): Binding<Obj[Prop]>
```
diff --git a/docs/guide/typescript/utilities.md b/docs/guide/typescript/utilities.md
index 02dfdaf..361c33b 100644
--- a/docs/guide/typescript/utilities.md
+++ b/docs/guide/typescript/utilities.md
@@ -128,8 +128,8 @@ const proc = subprocess(
// or with signals
const proc = subprocess("some-command")
-proc.connect("stdout", (out) => console.log(out))
-proc.connect("stderr", (err) => console.error(err))
+proc.connect("stdout", (_, out) => console.log(out))
+proc.connect("stderr", (_, err) => console.error(err))
```
### Executing external commands and scripts
diff --git a/docs/guide/typescript/variable.md b/docs/guide/typescript/variable.md
index 2abacbd..e6f3434 100644
--- a/docs/guide/typescript/variable.md
+++ b/docs/guide/typescript/variable.md
@@ -35,7 +35,7 @@ Widget.Label({
```
:::warning
-Make sure to make the transform functions passed to `.as()` are pure.
+Make sure to the transform functions you pass to `:as()` are pure.
The `.get()` function can be called anytime by `astal` especially when `deriving`,
so make sure there are no sideeffects.
:::
@@ -126,7 +126,7 @@ const myvar = Variable("")
## Dispose if no longer needed
-This will stop the interval and force exit the subprocess and disconnect gobjects.
+This will stop the interval, force exit the subprocess and disconnect gobjects.
```js
myVar.drop()