17 lines
213 B
JavaScript
17 lines
213 B
JavaScript
|
type Type = {
|
||
|
a: string | number,
|
||
|
b: ?string,
|
||
|
};
|
||
|
|
||
|
interface Interface {
|
||
|
a: string | number;
|
||
|
b: ?string;
|
||
|
}
|
||
|
|
||
|
class Class {
|
||
|
a: string | number;
|
||
|
b: ?string;
|
||
|
}
|
||
|
|
||
|
export {Type, Interface, Class};
|