{
  "type": "Program",
  "statements": [
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "ObjectPattern",
            "properties": [
              {
                "type": "Property",
                "method": false,
                "shorthand": true,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 7
                    },
                    "end": {
                      "line": 1,
                      "column": 8
                    }
                  }
                },
                "value": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 7
                    },
                    "end": {
                      "line": 1,
                      "column": 8
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 7
                  },
                  "end": {
                    "line": 1,
                    "column": 8
                  }
                }
              }
            ],
            "typeAnnotation": {
              "type": "TSUnionType",
              "types": [
                {
                  "type": "TSTypeLiteral",
                  "members": [
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "a",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 14
                          },
                          "end": {
                            "line": 1,
                            "column": 15
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 17
                          },
                          "end": {
                            "line": 1,
                            "column": 23
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 14
                        },
                        "end": {
                          "line": 1,
                          "column": 25
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 12
                    },
                    "end": {
                      "line": 1,
                      "column": 25
                    }
                  }
                },
                {
                  "type": "TSTypeLiteral",
                  "members": [
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "a",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 30
                          },
                          "end": {
                            "line": 1,
                            "column": 31
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 33
                          },
                          "end": {
                            "line": 1,
                            "column": 39
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 30
                        },
                        "end": {
                          "line": 1,
                          "column": 40
                        }
                      }
                    },
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "b",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 41
                          },
                          "end": {
                            "line": 1,
                            "column": 42
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSStringKeyword",
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 44
                          },
                          "end": {
                            "line": 1,
                            "column": 50
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 41
                        },
                        "end": {
                          "line": 1,
                          "column": 51
                        }
                      }
                    },
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "c",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 52
                          },
                          "end": {
                            "line": 1,
                            "column": 53
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSTypeLiteral",
                        "members": [
                          {
                            "type": "TSPropertySignature",
                            "computed": false,
                            "optional": false,
                            "readonly": false,
                            "key": {
                              "type": "Identifier",
                              "name": "a",
                              "decorators": [],
                              "loc": {
                                "start": {
                                  "line": 1,
                                  "column": 57
                                },
                                "end": {
                                  "line": 1,
                                  "column": 58
                                }
                              }
                            },
                            "typeAnnotation": {
                              "type": "TSNumberKeyword",
                              "loc": {
                                "start": {
                                  "line": 1,
                                  "column": 60
                                },
                                "end": {
                                  "line": 1,
                                  "column": 66
                                }
                              }
                            },
                            "loc": {
                              "start": {
                                "line": 1,
                                "column": 57
                              },
                              "end": {
                                "line": 1,
                                "column": 67
                              }
                            }
                          },
                          {
                            "type": "TSPropertySignature",
                            "computed": false,
                            "optional": false,
                            "readonly": false,
                            "key": {
                              "type": "Identifier",
                              "name": "b",
                              "decorators": [],
                              "loc": {
                                "start": {
                                  "line": 1,
                                  "column": 68
                                },
                                "end": {
                                  "line": 1,
                                  "column": 69
                                }
                              }
                            },
                            "typeAnnotation": {
                              "type": "TSBooleanKeyword",
                              "loc": {
                                "start": {
                                  "line": 1,
                                  "column": 71
                                },
                                "end": {
                                  "line": 1,
                                  "column": 78
                                }
                              }
                            },
                            "loc": {
                              "start": {
                                "line": 1,
                                "column": 68
                              },
                              "end": {
                                "line": 1,
                                "column": 80
                              }
                            }
                          }
                        ],
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 55
                          },
                          "end": {
                            "line": 1,
                            "column": 80
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 1,
                          "column": 52
                        },
                        "end": {
                          "line": 1,
                          "column": 82
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 28
                    },
                    "end": {
                      "line": 1,
                      "column": 82
                    }
                  }
                },
                {
                  "type": "TSNumberKeyword",
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 85
                    },
                    "end": {
                      "line": 1,
                      "column": 91
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 12
                },
                "end": {
                  "line": 1,
                  "column": 91
                }
              }
            },
            "loc": {
              "start": {
                "line": 1,
                "column": 5
              },
              "end": {
                "line": 1,
                "column": 10
              }
            }
          },
          "init": {
            "type": "ObjectExpression",
            "properties": [
              {
                "type": "Property",
                "method": false,
                "shorthand": false,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 96
                    },
                    "end": {
                      "line": 1,
                      "column": 97
                    }
                  }
                },
                "value": {
                  "type": "NumberLiteral",
                  "value": 12,
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 99
                    },
                    "end": {
                      "line": 1,
                      "column": 101
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 96
                  },
                  "end": {
                    "line": 1,
                    "column": 101
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 1,
                "column": 94
              },
              "end": {
                "line": 1,
                "column": 103
              }
            }
          },
          "loc": {
            "start": {
              "line": 1,
              "column": 5
            },
            "end": {
              "line": 1,
              "column": 103
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 1,
          "column": 1
        },
        "end": {
          "line": 1,
          "column": 104
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 1,
      "column": 104
    }
  }
}
TypeError: Property 'a' does not exist on type '{ a: number; } | { a: number; b: string; c: { a: number; b: boolean; }; } | number [objectDestructuring19.ts:1:7]
