message: Add object field to AnyField definition to support object types in method args and return
diff: @@ -54,13 +54,15 @@ export function createObjectDefinition(
  export interface AnyDefinition extends GenericDefinition {
  array: ArrayDefinition | null;
  scalar: ScalarDefinition | null;
  + object: ObjectDefinition | null;
  }
  export function createAnyDefinition(
  name: string,
  type?: string,
  required?: boolean,
  array?: ArrayDefinition,
  - scalar?: ScalarDefinition
  + scalar?: ScalarDefinition,
  + object?: ObjectDefinition,
  ): AnyDefinition {
  return {
  name,
  @@ -69,6 +71,7 @@ export function createAnyDefinition(
  array: array ? array : null,
  scalar: scalar ? scalar : null,
  kind: DefinitionKind.Any,
  + object: object ? object : null,
  };
  }
  @@ -108,6 +111,7 @@ export function createArrayDefinition(
  ? (item as ScalarDefinition)
  : null,
  kind: DefinitionKind.Array,
  + object: null,
  item: item ? item : null,
  };
  }
  @@ -118,7 +122,8 @@ export function createPropertyDefinition(
  type?: string,
  required?: boolean,
  array?: ArrayDefinition,
  - scalar?: ScalarDefinition
  + scalar?: ScalarDefinition,
  + object?: ObjectDefinition,
  ): PropertyDefinition {
  return {
  name,
  @@ -127,9 +132,26 @@ export function createPropertyDefinition(
  array: array ? array : null,
  scalar: scalar ? scalar : null,
  kind: DefinitionKind.Property,
  + object: object ? object : null,
  };
  }
  +export function createObjectPropertyDefinition(
  + name: string,
  + type: string,
  + required: boolean,
  + properties: PropertyDefinition[]
  +): PropertyDefinition {
  + return createPropertyDefinition(
  + name,
  + type,
  + required,
  + undefined,
  + undefined,
  + createObjectDefinition(name, type, required)
  + );
  +}
  +
  export function createScalarPropertyDefinition(
  name: string,
  type: string,
  