{
  "type": "File",
  "start": 0,
  "end": 41,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 1,
      "column": 41
    }
  },
  "program": {
    "type": "Program",
    "start": 0,
    "end": 41,
    "loc": {
      "start": {
        "line": 1,
        "column": 0
      },
      "end": {
        "line": 1,
        "column": 41
      }
    },
    "sourceType": "module",
    "interpreter": null,
    "body": [
      {
        "type": "VariableDeclaration",
        "start": 0,
        "end": 41,
        "loc": {
          "start": {
            "line": 1,
            "column": 0
          },
          "end": {
            "line": 1,
            "column": 41
          }
        },
        "declarations": [
          {
            "type": "VariableDeclarator",
            "start": 4,
            "end": 40,
            "loc": {
              "start": {
                "line": 1,
                "column": 4
              },
              "end": {
                "line": 1,
                "column": 40
              }
            },
            "id": {
              "type": "Identifier",
              "start": 4,
              "end": 35,
              "loc": {
                "start": {
                  "line": 1,
                  "column": 4
                },
                "end": {
                  "line": 1,
                  "column": 35
                },
                "identifierName": "x"
              },
              "name": "x",
              "typeAnnotation": {
                "type": "TypeAnnotation",
                "start": 6,
                "end": 35,
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 6
                  },
                  "end": {
                    "line": 1,
                    "column": 35
                  }
                },
                "typeAnnotation": {
                  "type": "FunctionTypeAnnotation",
                  "start": 8,
                  "end": 35,
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 8
                    },
                    "end": {
                      "line": 1,
                      "column": 35
                    }
                  },
                  "params": [],
                  "rest": null,
                  "returnType": {
                    "type": "UnionTypeAnnotation",
                    "start": 14,
                    "end": 35,
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 14
                      },
                      "end": {
                        "line": 1,
                        "column": 35
                      }
                    },
                    "types": [
                      {
                        "type": "NumberTypeAnnotation",
                        "start": 14,
                        "end": 20,
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 14
                          },
                          "end": {
                            "line": 1,
                            "column": 20
                          }
                        }
                      },
                      {
                        "type": "FunctionTypeAnnotation",
                        "start": 23,
                        "end": 35,
                        "loc": {
                          "start": {
                            "line": 1,
                            "column": 23
                          },
                          "end": {
                            "line": 1,
                            "column": 35
                          }
                        },
                        "params": [],
                        "rest": null,
                        "returnType": {
                          "type": "StringTypeAnnotation",
                          "start": 29,
                          "end": 35,
                          "loc": {
                            "start": {
                              "line": 1,
                              "column": 29
                            },
                            "end": {
                              "line": 1,
                              "column": 35
                            }
                          }
                        },
                        "typeParameters": null
                      }
                    ]
                  },
                  "typeParameters": null
                }
              }
            },
            "init": {
              "type": "Identifier",
              "start": 38,
              "end": 40,
              "loc": {
                "start": {
                  "line": 1,
                  "column": 38
                },
                "end": {
                  "line": 1,
                  "column": 40
                },
                "identifierName": "fn"
              },
              "name": "fn"
            }
          }
        ],
        "kind": "var"
      }
    ],
    "directives": []
  }
}