UNPKG
@cap-js/asyncapi
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
CAP tool for AsyncAPI
cap.cloud.sap
cap-js/asyncapi
@cap-js/asyncapi
/
lib
/
compile
/
components
/
schemas
/
array.js
9 lines
(6 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
{ getBaseTypeStructure } =
require
(
'./utils'
); module.exports =
function
getArrayOfType
(
type
)
{
const
array
=
getBaseTypeStructure
(
'array'
);
array
.items = type;
return
array
; }