@secrecy/lib
Preparing search index...
isSecrecyError
Function isSecrecyError
isSecrecyError
(
input
:
unknown
,
)
:
input
is
|
{
code
:
|
"PARSE_ERROR"
|
"BAD_REQUEST"
|
"INTERNAL_SERVER_ERROR"
|
"NOT_IMPLEMENTED"
|
"UNAUTHORIZED"
|
"FORBIDDEN"
|
"NOT_FOUND"
|
"METHOD_NOT_SUPPORTED"
|
"TIMEOUT"
|
"CONFLICT"
|
"PRECONDITION_FAILED"
|
"PAYLOAD_TOO_LARGE"
|
"UNPROCESSABLE_CONTENT"
|
"TOO_MANY_REQUESTS"
|
"CLIENT_CLOSED_REQUEST"
;
data
?:
unknown
;
message
:
string
;
name
:
"TRPCError"
;
}
|
{
code
:
"NOT_FOUND"
;
message
:
string
;
name
:
"ClientError"
}
Parameters
input
:
unknown
Returns
input
is
|
{
code
:
|
"PARSE_ERROR"
|
"BAD_REQUEST"
|
"INTERNAL_SERVER_ERROR"
|
"NOT_IMPLEMENTED"
|
"UNAUTHORIZED"
|
"FORBIDDEN"
|
"NOT_FOUND"
|
"METHOD_NOT_SUPPORTED"
|
"TIMEOUT"
|
"CONFLICT"
|
"PRECONDITION_FAILED"
|
"PAYLOAD_TOO_LARGE"
|
"UNPROCESSABLE_CONTENT"
|
"TOO_MANY_REQUESTS"
|
"CLIENT_CLOSED_REQUEST"
;
data
?:
unknown
;
message
:
string
;
name
:
"TRPCError"
;
}
|
{
code
:
"NOT_FOUND"
;
message
:
string
;
name
:
"ClientError"
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@secrecy/lib
Loading...