UNPKG
@arifwidianto/rpc-agent
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
RPC Agent for both client and server, extends more methods easily
@arifwidianto/rpc-agent
/
dist
/
utils
/
schema.d.ts
4 lines
(3 loc)
•
242 B
TypeScript
View Raw
1
2
3
4
import
{
DynamicSchema
}
from
"../interfaces"
;
export
declare
function
validateSchema
(
schema
:
unknown
): schema is
DynamicSchema
;
export
declare
function
validateParamsToSchema
(
params
:
Record
<
string
,
unknown
>,
schema
:
DynamicSchema
):
boolean
;