Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Reference
  2. The Midio Language

Data type

PreviousContextsNextLocal variables

Last updated 2 months ago

Was this helpful?

Midio supports a variety of data types that allow you to work with different kinds of information. These data types include:

  • Number: Represents both integers and floating-point values.

  • String: Represents a sequence of characters.

  • Boolean: Represents a true or false value.

  • Null: Represents a lack of value

  • Array: Represents an ordered collection of elements, which can be of any data type.

  • Object: Represents a collection of key-value pairs, where keys are strings and values can be of any data type.

  • Buffer: An efficient representation of binary data as a sequence of bytes.

  • Opaque: A type used to hide a native value, used by certain native functions to manage native data types.

Static type checking

Although it is still rudimentary, Midio does have a (gradual) static type system. It is not yet possible to declare your own types in the editor, but you can assign types to your functions inputs and outputs.

We plan on expanding the capabilities of our type system in the future, allowing for more advanced types as well as the ability to define your own.