Parse: (data: string, type: "toml" | "yaml") => any

Parse SAM template yaml/json files, and SAM config yaml/toml files.

Provides a parse method that parses yaml, json, or toml.

Type declaration

    • (data: string, type: "toml" | "yaml"): any
    • Parameters

      • data: string
      • type: "toml" | "yaml"

      Returns any