We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc6ca8 commit adf1bd0Copy full SHA for adf1bd0
__tests__/lib/infer/type.js
@@ -40,6 +40,28 @@ test('inferType', function() {
40
type: 'TypeApplication'
41
});
42
43
+ expect(evaluate('/** */' + "type V = {a:number,'b':string}").type).toEqual({
44
+ fields: [
45
+ {
46
+ key: 'a',
47
+ type: 'FieldType',
48
+ value: {
49
+ name: 'number',
50
+ type: 'NameExpression'
51
+ }
52
+ },
53
54
+ key: 'b',
55
56
57
+ name: 'string',
58
59
60
61
+ ],
62
+ type: 'RecordType'
63
+ });
64
+
65
expect(evaluate('/** */' + 'type V = Array<T>').type).toEqual({
66
applications: [
67
{
0 commit comments