Add tests for optional fields
parent
b8e69e10a4
commit
50bbfe26fb
|
@ -0,0 +1,9 @@
|
||||||
|
type Type = {
|
||||||
|
a?: string,
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Interface {
|
||||||
|
a?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export {Type, Interface};
|
|
@ -0,0 +1,12 @@
|
||||||
|
- kind: record
|
||||||
|
fields:
|
||||||
|
- name: a
|
||||||
|
value: {kind: string}
|
||||||
|
required: false
|
||||||
|
id: [optionals, Type]
|
||||||
|
- kind: record
|
||||||
|
fields:
|
||||||
|
- name: a
|
||||||
|
value: {kind: boolean}
|
||||||
|
required: false
|
||||||
|
id: [optionals, Interface]
|
Loading…
Reference in New Issue