UNPKG
@mi-gpt/utils
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
MiGPT 常用工具方法
github.com/idootop/migpt-next
idootop/migpt-next
@mi-gpt/utils
/
dist
/
parse.d.cts
7 lines
(5 loc)
•
221 B
text/typescript
View Raw
1
2
3
4
5
6
7
declare
function
jsonEncode<T>(
obj
: T,
options
?: {
prettier
?:
boolean
; }):
string
|
undefined
;
declare
function
jsonDecode<T =
any
>(
json
:
string
|
null
|
undefined
): T |
undefined
;
export
{ jsonDecode, jsonEncode };