UNPKG
@cachemap/controller
Version:
latest (5.3.0)
5.3.0
5.2.5
5.2.4
5.2.3
5.2.2
5.2.1
5.2.0
5.1.0
5.0.7
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.3
4.0.2
4.0.1
4.0.0
3.2.0
The Cachemap controller module.
github.com/badbatch/cachemap
badbatch/cachemap
@cachemap/controller
/
src
/
helpers
/
validateArgs.ts
5 lines
(3 loc)
•
213 B
text/typescript
View Raw
1
2
3
4
5
import
{
type
EventData
}
from
'../types.ts'
;
export
const
validateArgs = ({ name,
type
}:
EventData
):
boolean
=>
(
typeof
name ===
'string'
&& name.
length
>
0
) || (
typeof
type
===
'string'
&&
type
.
length
>
0
);