@maiyunnet/kebab 9.10.0 → 9.11.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/doc/kebab-rag.md +185 -117
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/ai.d.ts +9 -1
- package/lib/ai.js +41 -0
- package/lib/core.d.ts +1 -1
- package/lib/text.d.ts +2 -1
- package/lib/text.js +22 -6
- package/lib/undici/response.js +7 -3
- package/package.json +1 -1
- package/sys/cmd.js +4 -0
- package/sys/master.js +6 -1
- package/sys/mod.js +12 -0
- package/www/example/ctr/test.js +127 -0
package/doc/kebab-rag.md
CHANGED
|
@@ -1360,7 +1360,7 @@ index/variables/VER.md
|
|
|
1360
1360
|
|
|
1361
1361
|
# Variable: VER
|
|
1362
1362
|
|
|
1363
|
-
> `const` **VER**: `"9.
|
|
1363
|
+
> `const` **VER**: `"9.11.0"` = `'9.11.0'`
|
|
1364
1364
|
|
|
1365
1365
|
Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
|
|
1366
1366
|
|
|
@@ -1407,7 +1407,7 @@ lib/ai/classes/Ai.md
|
|
|
1407
1407
|
|
|
1408
1408
|
# Class: Ai
|
|
1409
1409
|
|
|
1410
|
-
Defined in: [lib/ai.ts:
|
|
1410
|
+
Defined in: [lib/ai.ts:67](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L67)
|
|
1411
1411
|
|
|
1412
1412
|
## Constructors
|
|
1413
1413
|
|
|
@@ -1415,7 +1415,7 @@ Defined in: [lib/ai.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1415
1415
|
|
|
1416
1416
|
> **new Ai**(`ctrEtc`, `opt`): `Ai`
|
|
1417
1417
|
|
|
1418
|
-
Defined in: [lib/ai.ts:
|
|
1418
|
+
Defined in: [lib/ai.ts:80](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L80)
|
|
1419
1419
|
|
|
1420
1420
|
#### Parameters
|
|
1421
1421
|
|
|
@@ -1437,7 +1437,7 @@ Defined in: [lib/ai.ts:73](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1437
1437
|
|
|
1438
1438
|
> `readonly` **link**: `OpenAI`
|
|
1439
1439
|
|
|
1440
|
-
Defined in: [lib/ai.ts:
|
|
1440
|
+
Defined in: [lib/ai.ts:70](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L70)
|
|
1441
1441
|
|
|
1442
1442
|
openai 原生对象
|
|
1443
1443
|
|
|
@@ -1449,7 +1449,7 @@ openai 原生对象
|
|
|
1449
1449
|
|
|
1450
1450
|
> **get** **service**(): [`ESERVICE`](../enumerations/ESERVICE.md)
|
|
1451
1451
|
|
|
1452
|
-
Defined in: [lib/ai.ts:
|
|
1452
|
+
Defined in: [lib/ai.ts:164](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L164)
|
|
1453
1453
|
|
|
1454
1454
|
获取当前服务商
|
|
1455
1455
|
|
|
@@ -1467,7 +1467,7 @@ Defined in: [lib/ai.ts:149](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1467
1467
|
|
|
1468
1468
|
> **chat**(`body`): `Promise`\<`false` \| `APIPromise`\<`ChatCompletion`\>\>
|
|
1469
1469
|
|
|
1470
|
-
Defined in: [lib/ai.ts:
|
|
1470
|
+
Defined in: [lib/ai.ts:169](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L169)
|
|
1471
1471
|
|
|
1472
1472
|
创建非流式对话
|
|
1473
1473
|
|
|
@@ -1485,7 +1485,7 @@ Defined in: [lib/ai.ts:154](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1485
1485
|
|
|
1486
1486
|
> **chat**(`body`): `Promise`\<`false` \| `APIPromise`\<`Stream`\<`ChatCompletionChunk`\>\>\>
|
|
1487
1487
|
|
|
1488
|
-
Defined in: [lib/ai.ts:
|
|
1488
|
+
Defined in: [lib/ai.ts:173](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L173)
|
|
1489
1489
|
|
|
1490
1490
|
创建流式对话
|
|
1491
1491
|
|
|
@@ -1505,7 +1505,7 @@ Defined in: [lib/ai.ts:158](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1505
1505
|
|
|
1506
1506
|
> **embedding**(`body`): `Promise`\<`false` \| `APIPromise`\<`CreateEmbeddingResponse`\>\>
|
|
1507
1507
|
|
|
1508
|
-
Defined in: [lib/ai.ts:
|
|
1508
|
+
Defined in: [lib/ai.ts:222](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L222)
|
|
1509
1509
|
|
|
1510
1510
|
创建向量
|
|
1511
1511
|
|
|
@@ -1525,7 +1525,7 @@ Defined in: [lib/ai.ts:181](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1525
1525
|
|
|
1526
1526
|
> **image**(`opt`): `Promise`\<`false` \| \{ `list`: `object`[]; `request`: `string`; `seed`: `number`; \}\>
|
|
1527
1527
|
|
|
1528
|
-
Defined in: [lib/ai.ts:
|
|
1528
|
+
Defined in: [lib/ai.ts:238](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L238)
|
|
1529
1529
|
|
|
1530
1530
|
生成图像,不支持 GEMINI、GROK 服务商
|
|
1531
1531
|
|
|
@@ -1587,7 +1587,7 @@ Defined in: [lib/ai.ts:197](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1587
1587
|
|
|
1588
1588
|
> **poll**(`opt`): `Promise`\<`false` \| \{ `add?`: `number`; `end?`: `number`; `error?`: `string`; `start?`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; `url?`: `string`; \}\>
|
|
1589
1589
|
|
|
1590
|
-
Defined in: [lib/ai.ts:
|
|
1590
|
+
Defined in: [lib/ai.ts:599](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L599)
|
|
1591
1591
|
|
|
1592
1592
|
轮询任务
|
|
1593
1593
|
|
|
@@ -1609,11 +1609,53 @@ Defined in: [lib/ai.ts:546](https://github.com/maiyunnet/kebab/blob/master/lib/a
|
|
|
1609
1609
|
|
|
1610
1610
|
***
|
|
1611
1611
|
|
|
1612
|
+
### response()
|
|
1613
|
+
|
|
1614
|
+
创建 Response
|
|
1615
|
+
|
|
1616
|
+
#### Call Signature
|
|
1617
|
+
|
|
1618
|
+
> **response**(`body`): `Promise`\<`false` \| `APIPromise`\<`Response`\>\>
|
|
1619
|
+
|
|
1620
|
+
Defined in: [lib/ai.ts:196](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L196)
|
|
1621
|
+
|
|
1622
|
+
创建非流式 Response
|
|
1623
|
+
|
|
1624
|
+
##### Parameters
|
|
1625
|
+
|
|
1626
|
+
###### body
|
|
1627
|
+
|
|
1628
|
+
`ResponseCreateParamsNonStreaming`
|
|
1629
|
+
|
|
1630
|
+
##### Returns
|
|
1631
|
+
|
|
1632
|
+
`Promise`\<`false` \| `APIPromise`\<`Response`\>\>
|
|
1633
|
+
|
|
1634
|
+
#### Call Signature
|
|
1635
|
+
|
|
1636
|
+
> **response**(`body`): `Promise`\<`false` \| `APIPromise`\<`Stream`\<`ResponseStreamEvent`\>\>\>
|
|
1637
|
+
|
|
1638
|
+
Defined in: [lib/ai.ts:200](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L200)
|
|
1639
|
+
|
|
1640
|
+
创建流式 Response
|
|
1641
|
+
|
|
1642
|
+
##### Parameters
|
|
1643
|
+
|
|
1644
|
+
###### body
|
|
1645
|
+
|
|
1646
|
+
`ResponseCreateParamsStreaming`
|
|
1647
|
+
|
|
1648
|
+
##### Returns
|
|
1649
|
+
|
|
1650
|
+
`Promise`\<`false` \| `APIPromise`\<`Stream`\<`ResponseStreamEvent`\>\>\>
|
|
1651
|
+
|
|
1652
|
+
***
|
|
1653
|
+
|
|
1612
1654
|
### video()
|
|
1613
1655
|
|
|
1614
1656
|
> **video**(`opt`): `Promise`\<`false` \| \{ `request`: `string`; `seed`: `number`; `status`: `"PENDING"` \| `"RUNNING"` \| `"SUCCEEDED"` \| `"FAILED"` \| `"CANCELED"` \| `"UNKNOWN"`; `task`: `string`; \}\>
|
|
1615
1657
|
|
|
1616
|
-
Defined in: [lib/ai.ts:
|
|
1658
|
+
Defined in: [lib/ai.ts:428](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L428)
|
|
1617
1659
|
|
|
1618
1660
|
异步生成视频,仅支持 ALICN、ALIAS、ALINE
|
|
1619
1661
|
|
|
@@ -1790,6 +1832,26 @@ Grok
|
|
|
1790
1832
|
|
|
1791
1833
|
***
|
|
1792
1834
|
|
|
1835
|
+
### OFOX
|
|
1836
|
+
|
|
1837
|
+
> **OFOX**: `11`
|
|
1838
|
+
|
|
1839
|
+
Defined in: [lib/ai.ts:46](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L46)
|
|
1840
|
+
|
|
1841
|
+
OfoxAI
|
|
1842
|
+
|
|
1843
|
+
***
|
|
1844
|
+
|
|
1845
|
+
### OPENROUTER
|
|
1846
|
+
|
|
1847
|
+
> **OPENROUTER**: `10`
|
|
1848
|
+
|
|
1849
|
+
Defined in: [lib/ai.ts:44](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L44)
|
|
1850
|
+
|
|
1851
|
+
OpenRouter
|
|
1852
|
+
|
|
1853
|
+
***
|
|
1854
|
+
|
|
1793
1855
|
### VOLAS
|
|
1794
1856
|
|
|
1795
1857
|
> **VOLAS**: `9`
|
|
@@ -1821,7 +1883,7 @@ lib/ai/functions/get.md
|
|
|
1821
1883
|
|
|
1822
1884
|
> **get**(`ctrEtc`, `opt`): [`Ai`](../classes/Ai.md)
|
|
1823
1885
|
|
|
1824
|
-
Defined in: [lib/ai.ts:
|
|
1886
|
+
Defined in: [lib/ai.ts:657](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L657)
|
|
1825
1887
|
|
|
1826
1888
|
创建一个 AI 对象
|
|
1827
1889
|
|
|
@@ -1879,7 +1941,7 @@ lib/ai/interfaces/IOptions.md
|
|
|
1879
1941
|
|
|
1880
1942
|
# Interface: IOptions
|
|
1881
1943
|
|
|
1882
|
-
Defined in: [lib/ai.ts:
|
|
1944
|
+
Defined in: [lib/ai.ts:50](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L50)
|
|
1883
1945
|
|
|
1884
1946
|
选项
|
|
1885
1947
|
|
|
@@ -1889,7 +1951,7 @@ Defined in: [lib/ai.ts:43](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1889
1951
|
|
|
1890
1952
|
> `optional` **endpoint?**: `string`
|
|
1891
1953
|
|
|
1892
|
-
Defined in: [lib/ai.ts:
|
|
1954
|
+
Defined in: [lib/ai.ts:54](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L54)
|
|
1893
1955
|
|
|
1894
1956
|
接入点
|
|
1895
1957
|
|
|
@@ -1899,7 +1961,7 @@ Defined in: [lib/ai.ts:47](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1899
1961
|
|
|
1900
1962
|
> `optional` **fetch?**: (`input`, `init?`) => `Promise`\<`Response`\>
|
|
1901
1963
|
|
|
1902
|
-
Defined in: [lib/ai.ts:
|
|
1964
|
+
Defined in: [lib/ai.ts:58](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L58)
|
|
1903
1965
|
|
|
1904
1966
|
自定义 fetch 函数
|
|
1905
1967
|
|
|
@@ -1923,7 +1985,7 @@ Defined in: [lib/ai.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1923
1985
|
|
|
1924
1986
|
> `optional` **secretKey?**: `string`
|
|
1925
1987
|
|
|
1926
|
-
Defined in: [lib/ai.ts:
|
|
1988
|
+
Defined in: [lib/ai.ts:56](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L56)
|
|
1927
1989
|
|
|
1928
1990
|
密钥
|
|
1929
1991
|
|
|
@@ -1933,7 +1995,7 @@ Defined in: [lib/ai.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/ai
|
|
|
1933
1995
|
|
|
1934
1996
|
> **service**: [`ESERVICE`](../enumerations/ESERVICE.md)
|
|
1935
1997
|
|
|
1936
|
-
Defined in: [lib/ai.ts:
|
|
1998
|
+
Defined in: [lib/ai.ts:52](https://github.com/maiyunnet/kebab/blob/master/lib/ai.ts#L52)
|
|
1937
1999
|
|
|
1938
2000
|
服务商 -
|
|
1939
2001
|
|
|
@@ -3691,7 +3753,7 @@ Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
3691
3753
|
|
|
3692
3754
|
`string`
|
|
3693
3755
|
|
|
3694
|
-
如 2024/08/01/22
|
|
3756
|
+
如 2024/08/01/22,无所谓开头结尾是否有 /,不会逃逸出 cwd 路径
|
|
3695
3757
|
|
|
3696
3758
|
## Returns
|
|
3697
3759
|
|
|
@@ -15902,7 +15964,7 @@ lib/text/functions/csvescape.md
|
|
|
15902
15964
|
|
|
15903
15965
|
> **csvescape**(`str`): `string`
|
|
15904
15966
|
|
|
15905
|
-
Defined in: [lib/text.ts:
|
|
15967
|
+
Defined in: [lib/text.ts:514](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L514)
|
|
15906
15968
|
|
|
15907
15969
|
CSV 特殊字符转换为实体字符
|
|
15908
15970
|
|
|
@@ -15929,7 +15991,7 @@ lib/text/functions/getFileExt.md
|
|
|
15929
15991
|
|
|
15930
15992
|
> **getFileExt**(`path`): `string`
|
|
15931
15993
|
|
|
15932
|
-
Defined in: [lib/text.ts:
|
|
15994
|
+
Defined in: [lib/text.ts:555](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L555)
|
|
15933
15995
|
|
|
15934
15996
|
获取文件后缀
|
|
15935
15997
|
|
|
@@ -15958,7 +16020,7 @@ lib/text/functions/getFileNameExt.md
|
|
|
15958
16020
|
|
|
15959
16021
|
> **getFileNameExt**(`path`): `object`
|
|
15960
16022
|
|
|
15961
|
-
Defined in: [lib/text.ts:
|
|
16023
|
+
Defined in: [lib/text.ts:568](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L568)
|
|
15962
16024
|
|
|
15963
16025
|
获取文件名和后缀
|
|
15964
16026
|
|
|
@@ -15995,7 +16057,7 @@ lib/text/functions/getFilename.md
|
|
|
15995
16057
|
|
|
15996
16058
|
> **getFilename**(`path`, `ext?`): `string`
|
|
15997
16059
|
|
|
15998
|
-
Defined in: [lib/text.ts:
|
|
16060
|
+
Defined in: [lib/text.ts:535](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L535)
|
|
15999
16061
|
|
|
16000
16062
|
获取文件名
|
|
16001
16063
|
|
|
@@ -16030,7 +16092,7 @@ lib/text/functions/htmlescape.md
|
|
|
16030
16092
|
|
|
16031
16093
|
> **htmlescape**(`html`): `string`
|
|
16032
16094
|
|
|
16033
|
-
Defined in: [lib/text.ts:
|
|
16095
|
+
Defined in: [lib/text.ts:505](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L505)
|
|
16034
16096
|
|
|
16035
16097
|
HTML 特殊字符转换为实体字符
|
|
16036
16098
|
|
|
@@ -16059,7 +16121,7 @@ lib/text/functions/int2str.md
|
|
|
16059
16121
|
|
|
16060
16122
|
> **int2str**(`int`, `digits?`, `decimal?`): `string`
|
|
16061
16123
|
|
|
16062
|
-
Defined in: [lib/text.ts:
|
|
16124
|
+
Defined in: [lib/text.ts:768](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L768)
|
|
16063
16125
|
|
|
16064
16126
|
为解决精度问题,将整数转换为小数字符串
|
|
16065
16127
|
以下几个示例都是当 digits 为 3、decimal 为 2 时
|
|
@@ -16105,7 +16167,7 @@ lib/text/functions/isAscii.md
|
|
|
16105
16167
|
|
|
16106
16168
|
> **isAscii**(`text`): `boolean`
|
|
16107
16169
|
|
|
16108
|
-
Defined in: [lib/text.ts:
|
|
16170
|
+
Defined in: [lib/text.ts:273](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L273)
|
|
16109
16171
|
|
|
16110
16172
|
判断是否在 ascii 字符集内,仅可输入部分
|
|
16111
16173
|
|
|
@@ -16134,7 +16196,7 @@ lib/text/functions/isDomain.md
|
|
|
16134
16196
|
|
|
16135
16197
|
> **isDomain**(`domain`): `boolean`
|
|
16136
16198
|
|
|
16137
|
-
Defined in: [lib/text.ts:
|
|
16199
|
+
Defined in: [lib/text.ts:262](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L262)
|
|
16138
16200
|
|
|
16139
16201
|
判断是否是域名
|
|
16140
16202
|
|
|
@@ -16165,7 +16227,7 @@ lib/text/functions/isEMail.md
|
|
|
16165
16227
|
|
|
16166
16228
|
> **isEMail**(`email`): `boolean`
|
|
16167
16229
|
|
|
16168
|
-
Defined in: [lib/text.ts:
|
|
16230
|
+
Defined in: [lib/text.ts:231](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L231)
|
|
16169
16231
|
|
|
16170
16232
|
是否是邮件地址
|
|
16171
16233
|
|
|
@@ -16192,7 +16254,7 @@ lib/text/functions/isFalsy.md
|
|
|
16192
16254
|
|
|
16193
16255
|
> **isFalsy**(`val`): `val is TFalsy`
|
|
16194
16256
|
|
|
16195
|
-
Defined in: [lib/text.ts:
|
|
16257
|
+
Defined in: [lib/text.ts:719](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L719)
|
|
16196
16258
|
|
|
16197
16259
|
判断一个值是否是虚假的(为 null/undefined/空字符串/false/0)
|
|
16198
16260
|
|
|
@@ -16221,7 +16283,7 @@ lib/text/functions/isIdCardCN.md
|
|
|
16221
16283
|
|
|
16222
16284
|
> **isIdCardCN**(`idcard`): `boolean`
|
|
16223
16285
|
|
|
16224
|
-
Defined in: [lib/text.ts:
|
|
16286
|
+
Defined in: [lib/text.ts:385](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L385)
|
|
16225
16287
|
|
|
16226
16288
|
是否是中国大陆身份证号码
|
|
16227
16289
|
|
|
@@ -16250,7 +16312,7 @@ lib/text/functions/isIPv4.md
|
|
|
16250
16312
|
|
|
16251
16313
|
> **isIPv4**(`ip`): `boolean`
|
|
16252
16314
|
|
|
16253
|
-
Defined in: [lib/text.ts:
|
|
16315
|
+
Defined in: [lib/text.ts:241](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L241)
|
|
16254
16316
|
|
|
16255
16317
|
是否是 IPv4
|
|
16256
16318
|
|
|
@@ -16277,7 +16339,7 @@ lib/text/functions/isIPv6.md
|
|
|
16277
16339
|
|
|
16278
16340
|
> **isIPv6**(`ip`): `boolean`
|
|
16279
16341
|
|
|
16280
|
-
Defined in: [lib/text.ts:
|
|
16342
|
+
Defined in: [lib/text.ts:251](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L251)
|
|
16281
16343
|
|
|
16282
16344
|
是否是 IPv6
|
|
16283
16345
|
|
|
@@ -16304,7 +16366,7 @@ lib/text/functions/isPhoneCN.md
|
|
|
16304
16366
|
|
|
16305
16367
|
> **isPhoneCN**(`p`): `boolean`
|
|
16306
16368
|
|
|
16307
|
-
Defined in: [lib/text.ts:
|
|
16369
|
+
Defined in: [lib/text.ts:377](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L377)
|
|
16308
16370
|
|
|
16309
16371
|
判断手机号是否是 11 位,不做真实性校验
|
|
16310
16372
|
|
|
@@ -16333,7 +16395,7 @@ lib/text/functions/isRealPath.md
|
|
|
16333
16395
|
|
|
16334
16396
|
> **isRealPath**(`path`): `boolean`
|
|
16335
16397
|
|
|
16336
|
-
Defined in: [lib/text.ts:
|
|
16398
|
+
Defined in: [lib/text.ts:522](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L522)
|
|
16337
16399
|
|
|
16338
16400
|
判断是否是绝对路径,是返回 true,相对路径返回 false
|
|
16339
16401
|
|
|
@@ -16362,7 +16424,7 @@ lib/text/functions/isTruthy.md
|
|
|
16362
16424
|
|
|
16363
16425
|
> **isTruthy**\<`T`\>(`val`): `val is Exclude<T, TFalsy>`
|
|
16364
16426
|
|
|
16365
|
-
Defined in: [lib/text.ts:
|
|
16427
|
+
Defined in: [lib/text.ts:727](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L727)
|
|
16366
16428
|
|
|
16367
16429
|
判断一个值是否是真实的(不为 null/undefined/空字符串/false/0)
|
|
16368
16430
|
|
|
@@ -16397,7 +16459,7 @@ lib/text/functions/logicalOr.md
|
|
|
16397
16459
|
|
|
16398
16460
|
> **logicalOr**\<`T`, `T2`\>(`v1`, `v2`): `T` *extends* [`TFalsy`](../type-aliases/TFalsy.md) ? `T2` : `T`
|
|
16399
16461
|
|
|
16400
|
-
Defined in: [lib/text.ts:
|
|
16462
|
+
Defined in: [lib/text.ts:736](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L736)
|
|
16401
16463
|
|
|
16402
16464
|
类似 || 运算符的效果
|
|
16403
16465
|
|
|
@@ -16442,7 +16504,7 @@ lib/text/functions/match.md
|
|
|
16442
16504
|
|
|
16443
16505
|
> **match**(`str`, `regs`): `boolean`
|
|
16444
16506
|
|
|
16445
|
-
Defined in: [lib/text.ts:
|
|
16507
|
+
Defined in: [lib/text.ts:362](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L362)
|
|
16446
16508
|
|
|
16447
16509
|
传入正则进行匹配 str 是否有一项满足
|
|
16448
16510
|
|
|
@@ -16477,7 +16539,7 @@ lib/text/functions/nlReplace.md
|
|
|
16477
16539
|
|
|
16478
16540
|
> **nlReplace**(`str`, `to?`): `string`
|
|
16479
16541
|
|
|
16480
|
-
Defined in: [lib/text.ts:
|
|
16542
|
+
Defined in: [lib/text.ts:282](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L282)
|
|
16481
16543
|
|
|
16482
16544
|
换行替换为别的
|
|
16483
16545
|
|
|
@@ -16512,7 +16574,7 @@ lib/text/functions/parseDomain.md
|
|
|
16512
16574
|
|
|
16513
16575
|
> **parseDomain**(`domain`): `Promise`\<[`IDomain`](../interfaces/IDomain.md)\>
|
|
16514
16576
|
|
|
16515
|
-
Defined in: [lib/text.ts:
|
|
16577
|
+
Defined in: [lib/text.ts:305](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L305)
|
|
16516
16578
|
|
|
16517
16579
|
解析域名并获取 tld/sld/domain/sub
|
|
16518
16580
|
|
|
@@ -16582,7 +16644,7 @@ lib/text/functions/parseJson.md
|
|
|
16582
16644
|
|
|
16583
16645
|
> **parseJson**\<`T`\>(`str`): `false` \| `T`
|
|
16584
16646
|
|
|
16585
|
-
Defined in: [lib/text.ts:
|
|
16647
|
+
Defined in: [lib/text.ts:630](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L630)
|
|
16586
16648
|
|
|
16587
16649
|
将字符串解析为对象,返回 false 代表解析失败,支持 BigInt
|
|
16588
16650
|
|
|
@@ -16644,7 +16706,7 @@ lib/text/functions/queryParse.md
|
|
|
16644
16706
|
|
|
16645
16707
|
> **queryParse**(`query`): `Record`\<`string`, `string` \| `string`[]\>
|
|
16646
16708
|
|
|
16647
|
-
Defined in: [lib/text.ts:
|
|
16709
|
+
Defined in: [lib/text.ts:462](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L462)
|
|
16648
16710
|
|
|
16649
16711
|
将 query string 转换为对象
|
|
16650
16712
|
|
|
@@ -16675,7 +16737,7 @@ lib/text/functions/queryStringify.md
|
|
|
16675
16737
|
|
|
16676
16738
|
> **queryStringify**(`query`, `encode?`): `string`
|
|
16677
16739
|
|
|
16678
|
-
Defined in: [lib/text.ts:
|
|
16740
|
+
Defined in: [lib/text.ts:413](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L413)
|
|
16679
16741
|
|
|
16680
16742
|
将对象转换为 query string
|
|
16681
16743
|
|
|
@@ -16701,7 +16763,7 @@ Defined in: [lib/text.ts:396](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
16701
16763
|
|
|
16702
16764
|
> **queryStringify**(`query`, `options`): `string`
|
|
16703
16765
|
|
|
16704
|
-
Defined in: [lib/text.ts:
|
|
16766
|
+
Defined in: [lib/text.ts:419](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L419)
|
|
16705
16767
|
|
|
16706
16768
|
将对象转换为 query string
|
|
16707
16769
|
|
|
@@ -16781,7 +16843,7 @@ lib/text/functions/str2int.md
|
|
|
16781
16843
|
|
|
16782
16844
|
> **str2int**(`str`, `digits?`): `number`
|
|
16783
16845
|
|
|
16784
|
-
Defined in: [lib/text.ts:
|
|
16846
|
+
Defined in: [lib/text.ts:750](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L750)
|
|
16785
16847
|
|
|
16786
16848
|
为解决精度问题,将字符串数字转换为整数显示
|
|
16787
16849
|
以下几个示例都是当 digits 为 2 时
|
|
@@ -16821,7 +16883,7 @@ lib/text/functions/stringifyBuffer.md
|
|
|
16821
16883
|
|
|
16822
16884
|
> **stringifyBuffer**(`buf`): `string`
|
|
16823
16885
|
|
|
16824
|
-
Defined in: [lib/text.ts:
|
|
16886
|
+
Defined in: [lib/text.ts:673](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L673)
|
|
16825
16887
|
|
|
16826
16888
|
输出文本格式的 buffer
|
|
16827
16889
|
|
|
@@ -16850,7 +16912,7 @@ lib/text/functions/stringifyJson.md
|
|
|
16850
16912
|
|
|
16851
16913
|
> **stringifyJson**(`obj`, `space?`): `string`
|
|
16852
16914
|
|
|
16853
|
-
Defined in: [lib/text.ts:
|
|
16915
|
+
Defined in: [lib/text.ts:660](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L660)
|
|
16854
16916
|
|
|
16855
16917
|
将对象转换为 json 字符串,返回 false 代表解析失败,支持 BigInt
|
|
16856
16918
|
|
|
@@ -16885,7 +16947,7 @@ lib/text/functions/stringifyResult.md
|
|
|
16885
16947
|
|
|
16886
16948
|
> **stringifyResult**(`rtn`): `string`
|
|
16887
16949
|
|
|
16888
|
-
Defined in: [lib/text.ts:
|
|
16950
|
+
Defined in: [lib/text.ts:590](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L590)
|
|
16889
16951
|
|
|
16890
16952
|
将普通的返回 JSON 对象序列化为字符串
|
|
16891
16953
|
|
|
@@ -16914,7 +16976,7 @@ lib/text/functions/trimJson.md
|
|
|
16914
16976
|
|
|
16915
16977
|
> **trimJson**(`json`): `any`
|
|
16916
16978
|
|
|
16917
|
-
Defined in: [lib/text.ts:
|
|
16979
|
+
Defined in: [lib/text.ts:681](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L681)
|
|
16918
16980
|
|
|
16919
16981
|
递归删除 json 中的字符串首尾空格,会返回一个新的对象
|
|
16920
16982
|
|
|
@@ -16941,7 +17003,7 @@ lib/text/functions/urlAtom.md
|
|
|
16941
17003
|
|
|
16942
17004
|
> **urlAtom**(`url`): `string`
|
|
16943
17005
|
|
|
16944
|
-
Defined in: [lib/text.ts:
|
|
17006
|
+
Defined in: [lib/text.ts:212](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L212)
|
|
16945
17007
|
|
|
16946
17008
|
将路径中的 ../ ./ 都按规范妥善处理
|
|
16947
17009
|
|
|
@@ -16968,9 +17030,9 @@ lib/text/functions/urlResolve.md
|
|
|
16968
17030
|
|
|
16969
17031
|
# Function: urlResolve()
|
|
16970
17032
|
|
|
16971
|
-
> **urlResolve**(`from`, `to`): `string`
|
|
17033
|
+
> **urlResolve**(`from`, `to`, `limit?`): `string`
|
|
16972
17034
|
|
|
16973
|
-
Defined in: [lib/text.ts:
|
|
17035
|
+
Defined in: [lib/text.ts:146](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L146)
|
|
16974
17036
|
|
|
16975
17037
|
将相对路径根据基准路径进行转换
|
|
16976
17038
|
|
|
@@ -16988,6 +17050,12 @@ Defined in: [lib/text.ts:133](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
16988
17050
|
|
|
16989
17051
|
相对路径
|
|
16990
17052
|
|
|
17053
|
+
### limit?
|
|
17054
|
+
|
|
17055
|
+
`boolean` = `false`
|
|
17056
|
+
|
|
17057
|
+
是否限定结果不能逃逸出基准路径
|
|
17058
|
+
|
|
16991
17059
|
## Returns
|
|
16992
17060
|
|
|
16993
17061
|
`string`
|
|
@@ -17066,7 +17134,7 @@ lib/text/interfaces/IDomain.md
|
|
|
17066
17134
|
|
|
17067
17135
|
# Interface: IDomain
|
|
17068
17136
|
|
|
17069
|
-
Defined in: [lib/text.ts:
|
|
17137
|
+
Defined in: [lib/text.ts:294](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L294)
|
|
17070
17138
|
|
|
17071
17139
|
解析后的 domain
|
|
17072
17140
|
|
|
@@ -17076,7 +17144,7 @@ Defined in: [lib/text.ts:277](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
17076
17144
|
|
|
17077
17145
|
> **domain**: `string` \| `null`
|
|
17078
17146
|
|
|
17079
|
-
Defined in: [lib/text.ts:
|
|
17147
|
+
Defined in: [lib/text.ts:297](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L297)
|
|
17080
17148
|
|
|
17081
17149
|
***
|
|
17082
17150
|
|
|
@@ -17084,7 +17152,7 @@ Defined in: [lib/text.ts:280](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
17084
17152
|
|
|
17085
17153
|
> **sld**: `string` \| `null`
|
|
17086
17154
|
|
|
17087
|
-
Defined in: [lib/text.ts:
|
|
17155
|
+
Defined in: [lib/text.ts:296](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L296)
|
|
17088
17156
|
|
|
17089
17157
|
***
|
|
17090
17158
|
|
|
@@ -17092,7 +17160,7 @@ Defined in: [lib/text.ts:279](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
17092
17160
|
|
|
17093
17161
|
> **sub**: `string` \| `null`
|
|
17094
17162
|
|
|
17095
|
-
Defined in: [lib/text.ts:
|
|
17163
|
+
Defined in: [lib/text.ts:298](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L298)
|
|
17096
17164
|
|
|
17097
17165
|
***
|
|
17098
17166
|
|
|
@@ -17100,7 +17168,7 @@ Defined in: [lib/text.ts:281](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
17100
17168
|
|
|
17101
17169
|
> **tld**: `string` \| `null`
|
|
17102
17170
|
|
|
17103
|
-
Defined in: [lib/text.ts:
|
|
17171
|
+
Defined in: [lib/text.ts:295](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L295)
|
|
17104
17172
|
|
|
17105
17173
|
lib/text/type-aliases/TFalsy.md
|
|
17106
17174
|
---
|
|
@@ -17115,7 +17183,7 @@ lib/text/type-aliases/TFalsy.md
|
|
|
17115
17183
|
|
|
17116
17184
|
> **TFalsy** = `false` \| `""` \| `0` \| `null` \| `undefined` \| *typeof* `NaN`
|
|
17117
17185
|
|
|
17118
|
-
Defined in: [lib/text.ts:
|
|
17186
|
+
Defined in: [lib/text.ts:713](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L713)
|
|
17119
17187
|
|
|
17120
17188
|
虚假值类型
|
|
17121
17189
|
|
|
@@ -17132,7 +17200,7 @@ lib/text/variables/REGEXP_ASCII.md
|
|
|
17132
17200
|
|
|
17133
17201
|
> `const` **REGEXP\_ASCII**: `RegExp`
|
|
17134
17202
|
|
|
17135
|
-
Defined in: [lib/text.ts:
|
|
17203
|
+
Defined in: [lib/text.ts:267](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L267)
|
|
17136
17204
|
|
|
17137
17205
|
可打印的 ascii 字符集
|
|
17138
17206
|
|
|
@@ -17149,7 +17217,7 @@ lib/text/variables/REGEXP_DOMAIN.md
|
|
|
17149
17217
|
|
|
17150
17218
|
> `const` **REGEXP\_DOMAIN**: `RegExp`
|
|
17151
17219
|
|
|
17152
|
-
Defined in: [lib/text.ts:
|
|
17220
|
+
Defined in: [lib/text.ts:255](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L255)
|
|
17153
17221
|
|
|
17154
17222
|
lib/text/variables/REGEXP_EMAIL.md
|
|
17155
17223
|
---
|
|
@@ -17164,7 +17232,7 @@ lib/text/variables/REGEXP_EMAIL.md
|
|
|
17164
17232
|
|
|
17165
17233
|
> `const` **REGEXP\_EMAIL**: `RegExp`
|
|
17166
17234
|
|
|
17167
|
-
Defined in: [lib/text.ts:
|
|
17235
|
+
Defined in: [lib/text.ts:225](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L225)
|
|
17168
17236
|
|
|
17169
17237
|
lib/text/variables/REGEXP_IPV4.md
|
|
17170
17238
|
---
|
|
@@ -17179,7 +17247,7 @@ lib/text/variables/REGEXP_IPV4.md
|
|
|
17179
17247
|
|
|
17180
17248
|
> `const` **REGEXP\_IPV4**: `RegExp`
|
|
17181
17249
|
|
|
17182
|
-
Defined in: [lib/text.ts:
|
|
17250
|
+
Defined in: [lib/text.ts:235](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L235)
|
|
17183
17251
|
|
|
17184
17252
|
lib/text/variables/REGEXP_IPV6.md
|
|
17185
17253
|
---
|
|
@@ -17194,7 +17262,7 @@ lib/text/variables/REGEXP_IPV6.md
|
|
|
17194
17262
|
|
|
17195
17263
|
> `const` **REGEXP\_IPV6**: `RegExp`
|
|
17196
17264
|
|
|
17197
|
-
Defined in: [lib/text.ts:
|
|
17265
|
+
Defined in: [lib/text.ts:245](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L245)
|
|
17198
17266
|
|
|
17199
17267
|
lib/time/classes/Time.md
|
|
17200
17268
|
---
|
|
@@ -19198,7 +19266,7 @@ lib/undici/response/classes/Response.md
|
|
|
19198
19266
|
|
|
19199
19267
|
# Class: Response
|
|
19200
19268
|
|
|
19201
|
-
Defined in: [lib/undici/response.ts:
|
|
19269
|
+
Defined in: [lib/undici/response.ts:13](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L13)
|
|
19202
19270
|
|
|
19203
19271
|
## Constructors
|
|
19204
19272
|
|
|
@@ -19206,7 +19274,7 @@ Defined in: [lib/undici/response.ts:12](https://github.com/maiyunnet/kebab/blob/
|
|
|
19206
19274
|
|
|
19207
19275
|
> **new Response**(`req`): `Response`
|
|
19208
19276
|
|
|
19209
|
-
Defined in: [lib/undici/response.ts:
|
|
19277
|
+
Defined in: [lib/undici/response.ts:26](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L26)
|
|
19210
19278
|
|
|
19211
19279
|
#### Parameters
|
|
19212
19280
|
|
|
@@ -19224,7 +19292,7 @@ Defined in: [lib/undici/response.ts:25](https://github.com/maiyunnet/kebab/blob/
|
|
|
19224
19292
|
|
|
19225
19293
|
> **error**: `Error` \| `null` = `null`
|
|
19226
19294
|
|
|
19227
|
-
Defined in: [lib/undici/response.ts:
|
|
19295
|
+
Defined in: [lib/undici/response.ts:21](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L21)
|
|
19228
19296
|
|
|
19229
19297
|
***
|
|
19230
19298
|
|
|
@@ -19232,7 +19300,7 @@ Defined in: [lib/undici/response.ts:20](https://github.com/maiyunnet/kebab/blob/
|
|
|
19232
19300
|
|
|
19233
19301
|
> **headers**: [`THttpHeaders`](../../type-aliases/THttpHeaders.md) \| `null` = `null`
|
|
19234
19302
|
|
|
19235
|
-
Defined in: [lib/undici/response.ts:
|
|
19303
|
+
Defined in: [lib/undici/response.ts:19](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L19)
|
|
19236
19304
|
|
|
19237
19305
|
返回的 headers
|
|
19238
19306
|
|
|
@@ -19242,7 +19310,7 @@ Defined in: [lib/undici/response.ts:18](https://github.com/maiyunnet/kebab/blob/
|
|
|
19242
19310
|
|
|
19243
19311
|
> **getContent**(): `Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
|
|
19244
19312
|
|
|
19245
|
-
Defined in: [lib/undici/response.ts:
|
|
19313
|
+
Defined in: [lib/undici/response.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L33)
|
|
19246
19314
|
|
|
19247
19315
|
读取所有内容到内存
|
|
19248
19316
|
|
|
@@ -19256,7 +19324,7 @@ Defined in: [lib/undici/response.ts:32](https://github.com/maiyunnet/kebab/blob/
|
|
|
19256
19324
|
|
|
19257
19325
|
> **getJson**(): `Promise`\<`any`\>
|
|
19258
19326
|
|
|
19259
|
-
Defined in: [lib/undici/response.ts:
|
|
19327
|
+
Defined in: [lib/undici/response.ts:66](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L66)
|
|
19260
19328
|
|
|
19261
19329
|
读取所有内容为 JSON,失败返回 null
|
|
19262
19330
|
|
|
@@ -19270,7 +19338,7 @@ Defined in: [lib/undici/response.ts:63](https://github.com/maiyunnet/kebab/blob/
|
|
|
19270
19338
|
|
|
19271
19339
|
> **getRawStream**(): `BodyReadable` & `BodyMixin` \| `null`
|
|
19272
19340
|
|
|
19273
|
-
Defined in: [lib/undici/response.ts:
|
|
19341
|
+
Defined in: [lib/undici/response.ts:128](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L128)
|
|
19274
19342
|
|
|
19275
19343
|
获取原生响应读取流对象
|
|
19276
19344
|
|
|
@@ -19284,7 +19352,7 @@ Defined in: [lib/undici/response.ts:124](https://github.com/maiyunnet/kebab/blob
|
|
|
19284
19352
|
|
|
19285
19353
|
> **getStream**(): `BrotliDecompress` \| `Gunzip` \| `Inflate` \| `BodyReadable` & `BodyMixin` \| `null`
|
|
19286
19354
|
|
|
19287
|
-
Defined in: [lib/undici/response.ts:
|
|
19355
|
+
Defined in: [lib/undici/response.ts:92](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L92)
|
|
19288
19356
|
|
|
19289
19357
|
获取响应读取流对象
|
|
19290
19358
|
|
|
@@ -19298,7 +19366,7 @@ Defined in: [lib/undici/response.ts:88](https://github.com/maiyunnet/kebab/blob/
|
|
|
19298
19366
|
|
|
19299
19367
|
> **getText**(): `Promise`\<`string` \| `null`\>
|
|
19300
19368
|
|
|
19301
|
-
Defined in: [lib/undici/response.ts:
|
|
19369
|
+
Defined in: [lib/undici/response.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L51)
|
|
19302
19370
|
|
|
19303
19371
|
读取所有内容为文本
|
|
19304
19372
|
|
|
@@ -19312,7 +19380,7 @@ Defined in: [lib/undici/response.ts:49](https://github.com/maiyunnet/kebab/blob/
|
|
|
19312
19380
|
|
|
19313
19381
|
> **setContent**(`v`): `void`
|
|
19314
19382
|
|
|
19315
|
-
Defined in: [lib/undici/response.ts:
|
|
19383
|
+
Defined in: [lib/undici/response.ts:84](https://github.com/maiyunnet/kebab/blob/master/lib/undici/response.ts#L84)
|
|
19316
19384
|
|
|
19317
19385
|
用户自定义的 content 内容
|
|
19318
19386
|
|
|
@@ -23697,7 +23765,7 @@ Defined in: [sys/mod.ts:68](https://github.com/maiyunnet/kebab/blob/master/sys/m
|
|
|
23697
23765
|
|
|
23698
23766
|
> `protected` **\_keyGenerator**(): `string`
|
|
23699
23767
|
|
|
23700
|
-
Defined in: [sys/mod.ts:
|
|
23768
|
+
Defined in: [sys/mod.ts:1797](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1797)
|
|
23701
23769
|
|
|
23702
23770
|
当 _key 不为空时,则依据继承此方法的方法自动生成填充 key
|
|
23703
23771
|
|
|
@@ -23719,7 +23787,7 @@ Defined in: [sys/mod.ts:1785](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23719
23787
|
|
|
23720
23788
|
> **all**(): `Promise`\<`false` \| [`Rows`](Rows.md)\<`Mod`\>\>
|
|
23721
23789
|
|
|
23722
|
-
Defined in: [sys/mod.ts:
|
|
23790
|
+
Defined in: [sys/mod.ts:1139](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1139)
|
|
23723
23791
|
|
|
23724
23792
|
##### Returns
|
|
23725
23793
|
|
|
@@ -23729,7 +23797,7 @@ Defined in: [sys/mod.ts:1127](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23729
23797
|
|
|
23730
23798
|
> **all**(`key`): `Promise`\<`false` \| `Record`\<`string`, `Mod`\>\>
|
|
23731
23799
|
|
|
23732
|
-
Defined in: [sys/mod.ts:
|
|
23800
|
+
Defined in: [sys/mod.ts:1140](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1140)
|
|
23733
23801
|
|
|
23734
23802
|
##### Parameters
|
|
23735
23803
|
|
|
@@ -23755,7 +23823,7 @@ Defined in: [sys/mod.ts:1128](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23755
23823
|
|
|
23756
23824
|
> **allArray**(): `Promise`\<`false` \| `Record`\<`string`, `any`\>[]\>
|
|
23757
23825
|
|
|
23758
|
-
Defined in: [sys/mod.ts:
|
|
23826
|
+
Defined in: [sys/mod.ts:1318](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1318)
|
|
23759
23827
|
|
|
23760
23828
|
##### Returns
|
|
23761
23829
|
|
|
@@ -23765,7 +23833,7 @@ Defined in: [sys/mod.ts:1306](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23765
23833
|
|
|
23766
23834
|
> **allArray**(`key`): `Promise`\<`false` \| `Record`\<`string`, `Record`\<`string`, `any`\>\>\>
|
|
23767
23835
|
|
|
23768
|
-
Defined in: [sys/mod.ts:
|
|
23836
|
+
Defined in: [sys/mod.ts:1319](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1319)
|
|
23769
23837
|
|
|
23770
23838
|
##### Parameters
|
|
23771
23839
|
|
|
@@ -23783,7 +23851,7 @@ Defined in: [sys/mod.ts:1307](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23783
23851
|
|
|
23784
23852
|
> **append**(`sql`): `this`
|
|
23785
23853
|
|
|
23786
|
-
Defined in: [sys/mod.ts:
|
|
23854
|
+
Defined in: [sys/mod.ts:1706](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1706)
|
|
23787
23855
|
|
|
23788
23856
|
在 sql 最后追加字符串
|
|
23789
23857
|
|
|
@@ -23803,7 +23871,7 @@ Defined in: [sys/mod.ts:1694](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23803
23871
|
|
|
23804
23872
|
> **by**(`c`, `d?`): `this`
|
|
23805
23873
|
|
|
23806
|
-
Defined in: [sys/mod.ts:
|
|
23874
|
+
Defined in: [sys/mod.ts:1662](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1662)
|
|
23807
23875
|
|
|
23808
23876
|
ORDER BY
|
|
23809
23877
|
|
|
@@ -23831,7 +23899,7 @@ ORDER BY
|
|
|
23831
23899
|
|
|
23832
23900
|
> **contain**(`contain`): `this`
|
|
23833
23901
|
|
|
23834
|
-
Defined in: [sys/mod.ts:
|
|
23902
|
+
Defined in: [sys/mod.ts:1715](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1715)
|
|
23835
23903
|
|
|
23836
23904
|
设置闭包含数据
|
|
23837
23905
|
|
|
@@ -23859,7 +23927,7 @@ Defined in: [sys/mod.ts:1703](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23859
23927
|
|
|
23860
23928
|
> **count**(): `Promise`\<`number`\>
|
|
23861
23929
|
|
|
23862
|
-
Defined in: [sys/mod.ts:
|
|
23930
|
+
Defined in: [sys/mod.ts:1526](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1526)
|
|
23863
23931
|
|
|
23864
23932
|
根据当前条件,筛选出当前条目该有的数据条数
|
|
23865
23933
|
|
|
@@ -23873,7 +23941,7 @@ Defined in: [sys/mod.ts:1514](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23873
23941
|
|
|
23874
23942
|
> **countSql**(): `string`
|
|
23875
23943
|
|
|
23876
|
-
Defined in: [sys/mod.ts:
|
|
23944
|
+
Defined in: [sys/mod.ts:1547](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1547)
|
|
23877
23945
|
|
|
23878
23946
|
获取当前条件下的 count 的 SQL 语句
|
|
23879
23947
|
|
|
@@ -23903,7 +23971,7 @@ true-成功,false-报错,null-唯一键非 _$key 键冲突
|
|
|
23903
23971
|
|
|
23904
23972
|
> **crossJoin**(`f`, `s`, `index?`, `pre?`): `this`
|
|
23905
23973
|
|
|
23906
|
-
Defined in: [sys/mod.ts:
|
|
23974
|
+
Defined in: [sys/mod.ts:1622](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1622)
|
|
23907
23975
|
|
|
23908
23976
|
cross join 方法
|
|
23909
23977
|
|
|
@@ -23951,7 +24019,7 @@ ON 信息
|
|
|
23951
24019
|
|
|
23952
24020
|
> **explain**(`all?`): `Promise`\<`string` \| `false`\>
|
|
23953
24021
|
|
|
23954
|
-
Defined in: [sys/mod.ts:
|
|
24022
|
+
Defined in: [sys/mod.ts:1444](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1444)
|
|
23955
24023
|
|
|
23956
24024
|
##### Parameters
|
|
23957
24025
|
|
|
@@ -23967,7 +24035,7 @@ Defined in: [sys/mod.ts:1432](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23967
24035
|
|
|
23968
24036
|
> **explain**(`all`): `Promise`\<`false` \| `Record`\<`string`, `any`\>\>
|
|
23969
24037
|
|
|
23970
|
-
Defined in: [sys/mod.ts:
|
|
24038
|
+
Defined in: [sys/mod.ts:1445](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1445)
|
|
23971
24039
|
|
|
23972
24040
|
##### Parameters
|
|
23973
24041
|
|
|
@@ -23985,7 +24053,7 @@ Defined in: [sys/mod.ts:1433](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
23985
24053
|
|
|
23986
24054
|
> **filter**(`s`): `this`
|
|
23987
24055
|
|
|
23988
|
-
Defined in: [sys/mod.ts:
|
|
24056
|
+
Defined in: [sys/mod.ts:1640](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1640)
|
|
23989
24057
|
|
|
23990
24058
|
筛选器
|
|
23991
24059
|
|
|
@@ -24019,7 +24087,7 @@ Defined in: [sys/mod.ts:1628](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24019
24087
|
|
|
24020
24088
|
> **first**(`lock`, `array`): `Promise`\<`false` \| `Record`\<`string`, `any`\> \| `null`\>
|
|
24021
24089
|
|
|
24022
|
-
Defined in: [sys/mod.ts:
|
|
24090
|
+
Defined in: [sys/mod.ts:1028](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1028)
|
|
24023
24091
|
|
|
24024
24092
|
##### Parameters
|
|
24025
24093
|
|
|
@@ -24039,7 +24107,7 @@ Defined in: [sys/mod.ts:1016](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24039
24107
|
|
|
24040
24108
|
> **first**(`lock?`, `array?`): `Promise`\<`false` \| `Mod` & `Record`\<`string`, `any`\> \| `null`\>
|
|
24041
24109
|
|
|
24042
|
-
Defined in: [sys/mod.ts:
|
|
24110
|
+
Defined in: [sys/mod.ts:1032](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1032)
|
|
24043
24111
|
|
|
24044
24112
|
##### Parameters
|
|
24045
24113
|
|
|
@@ -24061,7 +24129,7 @@ Defined in: [sys/mod.ts:1020](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24061
24129
|
|
|
24062
24130
|
> **firstArray**(`lock?`): `Promise`\<`false` \| `Record`\<`string`, `any`\> \| `null`\>
|
|
24063
24131
|
|
|
24064
|
-
Defined in: [sys/mod.ts:
|
|
24132
|
+
Defined in: [sys/mod.ts:1072](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1072)
|
|
24065
24133
|
|
|
24066
24134
|
获取数据库第一个原生对象
|
|
24067
24135
|
|
|
@@ -24083,7 +24151,7 @@ Defined in: [sys/mod.ts:1060](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24083
24151
|
|
|
24084
24152
|
> **format**(`sql?`, `data?`): `string`
|
|
24085
24153
|
|
|
24086
|
-
Defined in: [sys/mod.ts:
|
|
24154
|
+
Defined in: [sys/mod.ts:1742](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1742)
|
|
24087
24155
|
|
|
24088
24156
|
获取带 data 的 sql 语句
|
|
24089
24157
|
|
|
@@ -24111,7 +24179,7 @@ sql 语句
|
|
|
24111
24179
|
|
|
24112
24180
|
> **fullJoin**(`f`, `s`, `index?`, `pre?`): `this`
|
|
24113
24181
|
|
|
24114
|
-
Defined in: [sys/mod.ts:
|
|
24182
|
+
Defined in: [sys/mod.ts:1610](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1610)
|
|
24115
24183
|
|
|
24116
24184
|
full join 方法
|
|
24117
24185
|
|
|
@@ -24173,7 +24241,7 @@ Defined in: [sys/mod.ts:813](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
24173
24241
|
|
|
24174
24242
|
> **getData**(): `any`[]
|
|
24175
24243
|
|
|
24176
|
-
Defined in: [sys/mod.ts:
|
|
24244
|
+
Defined in: [sys/mod.ts:1733](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1733)
|
|
24177
24245
|
|
|
24178
24246
|
获取全部 data
|
|
24179
24247
|
|
|
@@ -24187,7 +24255,7 @@ Defined in: [sys/mod.ts:1721](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24187
24255
|
|
|
24188
24256
|
> **getSql**(): `string`
|
|
24189
24257
|
|
|
24190
|
-
Defined in: [sys/mod.ts:
|
|
24258
|
+
Defined in: [sys/mod.ts:1726](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1726)
|
|
24191
24259
|
|
|
24192
24260
|
获取 sql 语句
|
|
24193
24261
|
|
|
@@ -24201,7 +24269,7 @@ Defined in: [sys/mod.ts:1714](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24201
24269
|
|
|
24202
24270
|
> **group**(`c`): `this`
|
|
24203
24271
|
|
|
24204
|
-
Defined in: [sys/mod.ts:
|
|
24272
|
+
Defined in: [sys/mod.ts:1671](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1671)
|
|
24205
24273
|
|
|
24206
24274
|
GROUP BY
|
|
24207
24275
|
|
|
@@ -24223,7 +24291,7 @@ GROUP BY
|
|
|
24223
24291
|
|
|
24224
24292
|
> **having**(`s`): `this`
|
|
24225
24293
|
|
|
24226
|
-
Defined in: [sys/mod.ts:
|
|
24294
|
+
Defined in: [sys/mod.ts:1631](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1631)
|
|
24227
24295
|
|
|
24228
24296
|
筛选器
|
|
24229
24297
|
|
|
@@ -24245,7 +24313,7 @@ Defined in: [sys/mod.ts:1619](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24245
24313
|
|
|
24246
24314
|
> **innerJoin**(`f`, `s`, `index?`, `pre?`): `this`
|
|
24247
24315
|
|
|
24248
|
-
Defined in: [sys/mod.ts:
|
|
24316
|
+
Defined in: [sys/mod.ts:1598](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1598)
|
|
24249
24317
|
|
|
24250
24318
|
inner join 方法
|
|
24251
24319
|
|
|
@@ -24285,7 +24353,7 @@ ON 信息
|
|
|
24285
24353
|
|
|
24286
24354
|
> **join**(`f`, `s?`, `type?`, `index?`, `pre?`): `this`
|
|
24287
24355
|
|
|
24288
|
-
Defined in: [sys/mod.ts:
|
|
24356
|
+
Defined in: [sys/mod.ts:1562](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1562)
|
|
24289
24357
|
|
|
24290
24358
|
#### Parameters
|
|
24291
24359
|
|
|
@@ -24329,7 +24397,7 @@ ON 信息
|
|
|
24329
24397
|
|
|
24330
24398
|
> **langText**(`col`, `lang`): `string`
|
|
24331
24399
|
|
|
24332
|
-
Defined in: [sys/mod.ts:
|
|
24400
|
+
Defined in: [sys/mod.ts:1777](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1777)
|
|
24333
24401
|
|
|
24334
24402
|
获取字段的可用语种文本
|
|
24335
24403
|
|
|
@@ -24357,7 +24425,7 @@ Defined in: [sys/mod.ts:1765](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24357
24425
|
|
|
24358
24426
|
> **leftJoin**(`f`, `s`, `index?`, `pre?`): `this`
|
|
24359
24427
|
|
|
24360
|
-
Defined in: [sys/mod.ts:
|
|
24428
|
+
Defined in: [sys/mod.ts:1574](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1574)
|
|
24361
24429
|
|
|
24362
24430
|
left join 方法
|
|
24363
24431
|
|
|
@@ -24397,7 +24465,7 @@ ON 信息
|
|
|
24397
24465
|
|
|
24398
24466
|
> **limit**(`a`, `b?`): `this`
|
|
24399
24467
|
|
|
24400
|
-
Defined in: [sys/mod.ts:
|
|
24468
|
+
Defined in: [sys/mod.ts:1684](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1684)
|
|
24401
24469
|
|
|
24402
24470
|
LIMIT
|
|
24403
24471
|
|
|
@@ -24425,7 +24493,7 @@ LIMIT
|
|
|
24425
24493
|
|
|
24426
24494
|
> **page**(`count`, `page?`): `this`
|
|
24427
24495
|
|
|
24428
|
-
Defined in: [sys/mod.ts:
|
|
24496
|
+
Defined in: [sys/mod.ts:1695](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1695)
|
|
24429
24497
|
|
|
24430
24498
|
分页
|
|
24431
24499
|
|
|
@@ -24475,7 +24543,7 @@ Defined in: [sys/mod.ts:941](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
24475
24543
|
|
|
24476
24544
|
> **remove**(): `Promise`\<`boolean`\>
|
|
24477
24545
|
|
|
24478
|
-
Defined in: [sys/mod.ts:
|
|
24546
|
+
Defined in: [sys/mod.ts:1006](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1006)
|
|
24479
24547
|
|
|
24480
24548
|
移除本条目
|
|
24481
24549
|
|
|
@@ -24489,7 +24557,7 @@ Defined in: [sys/mod.ts:998](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
24489
24557
|
|
|
24490
24558
|
> **rightJoin**(`f`, `s`, `index?`, `pre?`): `this`
|
|
24491
24559
|
|
|
24492
|
-
Defined in: [sys/mod.ts:
|
|
24560
|
+
Defined in: [sys/mod.ts:1586](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1586)
|
|
24493
24561
|
|
|
24494
24562
|
right join 方法
|
|
24495
24563
|
|
|
@@ -24529,7 +24597,7 @@ ON 信息
|
|
|
24529
24597
|
|
|
24530
24598
|
> **save**(`where?`): `Promise`\<`boolean`\>
|
|
24531
24599
|
|
|
24532
|
-
Defined in: [sys/mod.ts:
|
|
24600
|
+
Defined in: [sys/mod.ts:973](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L973)
|
|
24533
24601
|
|
|
24534
24602
|
更新 set 的数据到数据库,有未保存数据时才保存
|
|
24535
24603
|
|
|
@@ -24621,7 +24689,7 @@ Defined in: [sys/mod.ts:775](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
24621
24689
|
|
|
24622
24690
|
> **toArray**\<`TC`\>(): [`TOnlyProperties`](../type-aliases/TOnlyProperties.md)\<`InstanceType`\<`TC`\>\> & `Record`\<`string`, `any`\>
|
|
24623
24691
|
|
|
24624
|
-
Defined in: [sys/mod.ts:
|
|
24692
|
+
Defined in: [sys/mod.ts:1749](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1749)
|
|
24625
24693
|
|
|
24626
24694
|
获取值对象,获取的是新创建的数组
|
|
24627
24695
|
|
|
@@ -24641,7 +24709,7 @@ Defined in: [sys/mod.ts:1737](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24641
24709
|
|
|
24642
24710
|
> **total**(`f?`): `Promise`\<`number`\>
|
|
24643
24711
|
|
|
24644
|
-
Defined in: [sys/mod.ts:
|
|
24712
|
+
Defined in: [sys/mod.ts:1502](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1502)
|
|
24645
24713
|
|
|
24646
24714
|
获取总条数,自动抛弃 LIMIT,仅用于获取数据的情况(select)
|
|
24647
24715
|
|
|
@@ -24661,7 +24729,7 @@ Defined in: [sys/mod.ts:1490](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24661
24729
|
|
|
24662
24730
|
> **union**(`f`, `type?`): `this`
|
|
24663
24731
|
|
|
24664
|
-
Defined in: [sys/mod.ts:
|
|
24732
|
+
Defined in: [sys/mod.ts:1083](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1083)
|
|
24665
24733
|
|
|
24666
24734
|
联合查询表数据
|
|
24667
24735
|
|
|
@@ -24689,7 +24757,7 @@ Defined in: [sys/mod.ts:1071](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24689
24757
|
|
|
24690
24758
|
> **unionAll**(`f`): `this`
|
|
24691
24759
|
|
|
24692
|
-
Defined in: [sys/mod.ts:
|
|
24760
|
+
Defined in: [sys/mod.ts:1113](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1113)
|
|
24693
24761
|
|
|
24694
24762
|
所有联合查询表数据
|
|
24695
24763
|
|
|
@@ -24711,7 +24779,7 @@ Defined in: [sys/mod.ts:1101](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24711
24779
|
|
|
24712
24780
|
> **unsaved**(): `boolean`
|
|
24713
24781
|
|
|
24714
|
-
Defined in: [sys/mod.ts:
|
|
24782
|
+
Defined in: [sys/mod.ts:1768](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1768)
|
|
24715
24783
|
|
|
24716
24784
|
当前是否设置了未保存 --=
|
|
24717
24785
|
|
|
@@ -24725,7 +24793,7 @@ Defined in: [sys/mod.ts:1756](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
24725
24793
|
|
|
24726
24794
|
> **updates**(): `Record`\<`string`, `any`\>
|
|
24727
24795
|
|
|
24728
|
-
Defined in: [sys/mod.ts:
|
|
24796
|
+
Defined in: [sys/mod.ts:1757](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1757)
|
|
24729
24797
|
|
|
24730
24798
|
获取当前设置要提交的数据
|
|
24731
24799
|
|
|
@@ -24761,7 +24829,7 @@ Defined in: [sys/mod.ts:911](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
24761
24829
|
|
|
24762
24830
|
> **where**(`s`): `this`
|
|
24763
24831
|
|
|
24764
|
-
Defined in: [sys/mod.ts:
|
|
24832
|
+
Defined in: [sys/mod.ts:1651](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1651)
|
|
24765
24833
|
|
|
24766
24834
|
是 filter 的别名
|
|
24767
24835
|
|
|
@@ -25935,7 +26003,7 @@ sys/mod/interfaces/IModUnionItem.md
|
|
|
25935
26003
|
|
|
25936
26004
|
# Interface: IModUnionItem
|
|
25937
26005
|
|
|
25938
|
-
Defined in: [sys/mod.ts:
|
|
26006
|
+
Defined in: [sys/mod.ts:1811](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1811)
|
|
25939
26007
|
|
|
25940
26008
|
## Properties
|
|
25941
26009
|
|
|
@@ -25943,7 +26011,7 @@ Defined in: [sys/mod.ts:1799](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
25943
26011
|
|
|
25944
26012
|
> **field**: `string`
|
|
25945
26013
|
|
|
25946
|
-
Defined in: [sys/mod.ts:
|
|
26014
|
+
Defined in: [sys/mod.ts:1812](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1812)
|
|
25947
26015
|
|
|
25948
26016
|
***
|
|
25949
26017
|
|
|
@@ -25951,7 +26019,7 @@ Defined in: [sys/mod.ts:1800](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
25951
26019
|
|
|
25952
26020
|
> `optional` **where?**: `any`
|
|
25953
26021
|
|
|
25954
|
-
Defined in: [sys/mod.ts:
|
|
26022
|
+
Defined in: [sys/mod.ts:1813](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1813)
|
|
25955
26023
|
|
|
25956
26024
|
sys/mod/interfaces/IRows.md
|
|
25957
26025
|
---
|
|
@@ -25964,7 +26032,7 @@ sys/mod/interfaces/IRows.md
|
|
|
25964
26032
|
|
|
25965
26033
|
# Interface: IRows\<T\>
|
|
25966
26034
|
|
|
25967
|
-
Defined in: [sys/mod.ts:
|
|
26035
|
+
Defined in: [sys/mod.ts:1805](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1805)
|
|
25968
26036
|
|
|
25969
26037
|
## Extends
|
|
25970
26038
|
|
|
@@ -25982,7 +26050,7 @@ Defined in: [sys/mod.ts:1793](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
25982
26050
|
|
|
25983
26051
|
> `readonly` **length**: `number`
|
|
25984
26052
|
|
|
25985
|
-
Defined in: [sys/mod.ts:
|
|
26053
|
+
Defined in: [sys/mod.ts:1806](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1806)
|
|
25986
26054
|
|
|
25987
26055
|
## Methods
|
|
25988
26056
|
|
|
@@ -25990,7 +26058,7 @@ Defined in: [sys/mod.ts:1794](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
25990
26058
|
|
|
25991
26059
|
> **item**(`index`): `T`
|
|
25992
26060
|
|
|
25993
|
-
Defined in: [sys/mod.ts:
|
|
26061
|
+
Defined in: [sys/mod.ts:1807](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1807)
|
|
25994
26062
|
|
|
25995
26063
|
#### Parameters
|
|
25996
26064
|
|
|
@@ -26008,7 +26076,7 @@ Defined in: [sys/mod.ts:1795](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
26008
26076
|
|
|
26009
26077
|
> **toArray**(): `Record`\<`string`, `any`\>[]
|
|
26010
26078
|
|
|
26011
|
-
Defined in: [sys/mod.ts:
|
|
26079
|
+
Defined in: [sys/mod.ts:1808](https://github.com/maiyunnet/kebab/blob/master/sys/mod.ts#L1808)
|
|
26012
26080
|
|
|
26013
26081
|
#### Returns
|
|
26014
26082
|
|