Skip to content

Commit 366df90

Browse files
author
AnjaBruls
committed
add code input
1 parent feb9c2c commit 366df90

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/Components/Collections/CollectionsUtils/InputUtils/AddCustomType.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ const useStyles = makeStyles(theme => ({
1818
}));
1919

2020
const typeConv = {
21-
'bool': ['bool'],
22-
'bytes': ['bytes'],
21+
'bool': ['bool', 'code', 'code'],
22+
'bytes': ['bytes', 'code'],
2323
'code': ['code'],
24-
'closure': ['closure'],
24+
'closure': ['closure', 'code'],
2525
'datetime': ['datetime'],
26-
'error': ['error'],
27-
'float': ['float'],
28-
'int': ['int'],
29-
'list': ['list'],
30-
'nil': ['nil'],
31-
'regex': ['regex'],
32-
'set': ['set'],
33-
'str': ['str'],
34-
'thing': ['thing'],
26+
'error': ['error', 'code'],
27+
'float': ['float', 'code'],
28+
'int': ['int', 'code'],
29+
'list': ['list', 'code'],
30+
'nil': ['nil', 'code'],
31+
'regex': ['regex', 'code'],
32+
'set': ['set', 'code'],
33+
'str': ['str', 'code'],
34+
'thing': ['thing', 'code'],
3535
'timeval': ['timeval'],
36-
'utf8': ['str'],
37-
'raw': ['str', 'bytes'],
38-
'uint': ['int'],
39-
'pint': ['int'],
40-
'nint': ['int'],
41-
'number': ['int', 'float'],
36+
'utf8': ['str', 'code'],
37+
'raw': ['str', 'bytes', 'code'],
38+
'uint': ['int', 'code'],
39+
'pint': ['int', 'code'],
40+
'nint': ['int', 'code'],
41+
'number': ['int', 'float', 'code'],
4242
};
4343

4444
const optional = (t) => {

0 commit comments

Comments
 (0)