Skip to content

Commit

Permalink
docs: fix typescript example for v9
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed May 21, 2024
1 parent 141e477 commit 7c888ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/component-model/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ import { Descriptor } from "hybrids";

export default function myFactory<E>(param: string): Descriptor<E, string> {
return {
get: (host, value = param) => value,
set: (host, value) => {
value: (host, value = param) => {
return value === "something" ? "something else" : value;
},
};
}
```
```

0 comments on commit 7c888ec

Please sign in to comment.