| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Note
Prerequisites: Install Deno from deno.com.
Deno (via JSR):
deno add jsr:@neabyte/typeboxOr import directly from JSR:
import { Define, Loader } from 'jsr:@neabyte/typebox'import { Define, Loader } from '@neabyte/typebox'
const app = Loader({
add: Define((props: { a: number; b: number }) => props.a + props.b),
counter: Define.state(0, (count, amount: number) => count + amount)
})
app.add({ a: 2, b: 3 }) // 5
app.counter(5) // 5
app.counter.get() // 5Read docs/README.md for full documentation.
Type check - format, lint, and type-check:
deno task checkUnit tests - format/lint tests and run all tests:
deno task testThis project is licensed under the MIT license. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |