Coda by Ian Macalinao
    Preparing search index...

    Function validateCodamaVersion

    • Asserts that an IDL version is compatible with the Codama spec version supported by the installed packages — i.e. that both share the same major — and narrows it to CodamaVersion accordingly.

      The IDL version is compared against the generated CODAMA_VERSION spec constant, not the npm package version: the two are unrelated namespaces. Accepts any string since IDLs usually arrive as untrusted JSON; unparsable versions are rejected.

      Parameters

      • rootVersion: string

      Returns asserts rootVersion is `1.${number}.${number}`