@gunshi/definition 0.27.0-alpha.8 â 0.27.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/lib/index.d.ts +1084 -143
- package/lib/index.js +227 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# `@gunshi/definition`
|
|
2
2
|
|
|
3
|
+
[![Version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![InstallSize][install-size-src]][install-size-src]
|
|
5
|
+
[![JSR][jsr-src]][jsr-href]
|
|
6
|
+
|
|
3
7
|
> utilities for gunshi command definition
|
|
4
8
|
|
|
5
9
|
This package exports the bellow APIs and types.
|
|
@@ -37,7 +41,7 @@ bun add @gunshi/definition
|
|
|
37
41
|
|
|
38
42
|
## đ Usage
|
|
39
43
|
|
|
40
|
-
You can define the gunshi command as JavaScript module with using `define`
|
|
44
|
+
You can define the gunshi command as JavaScript module with using `define`, `defineWithTypes`, `lazy` and `lazyWithTypes`
|
|
41
45
|
|
|
42
46
|
The bellow example case which is using `define`:
|
|
43
47
|
|
|
@@ -65,3 +69,11 @@ export default define({
|
|
|
65
69
|
## ÂŠī¸ License
|
|
66
70
|
|
|
67
71
|
[MIT](http://opensource.org/licenses/MIT)
|
|
72
|
+
|
|
73
|
+
<!-- Badges -->
|
|
74
|
+
|
|
75
|
+
[npm-version-src]: https://img.shields.io/npm/v/@gunshi/definition?style=flat
|
|
76
|
+
[npm-version-href]: https://npmjs.com/package/@gunshi/definition@alpha
|
|
77
|
+
[jsr-src]: https://jsr.io/badges/@gunshi/definition
|
|
78
|
+
[jsr-href]: https://jsr.io/@gunshi/definition
|
|
79
|
+
[install-size-src]: https://pkg-size.dev/badge/install/23122
|