Add tests for "value as type" case
parent
e44e49e966
commit
26bd7a92a5
|
@ -0,0 +1,30 @@
|
|||
type Type = {
|
||||
a: 'one',
|
||||
};
|
||||
|
||||
interface Interface {
|
||||
a: 'one';
|
||||
}
|
||||
|
||||
class Class {
|
||||
a: 'one';
|
||||
}
|
||||
|
||||
// ###
|
||||
({
|
||||
Type: {
|
||||
type: 'record',
|
||||
name: 'Type',
|
||||
fields: [{name: 'a', type: {type: 'enum', symbols: ['one']}}],
|
||||
},
|
||||
Interface: {
|
||||
type: 'record',
|
||||
name: 'Interface',
|
||||
fields: [{name: 'a', type: {type: 'enum', symbols: ['one']}}],
|
||||
},
|
||||
Class: {
|
||||
type: 'record',
|
||||
name: 'Class',
|
||||
fields: [{name: 'a', type: {type: 'enum', symbols: ['one']}}],
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue