# All files / src/utils types.js

100% Statements 4/4
100% Branches 6/6
100% Functions 1/1
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    1323x
    5x

    1x

    4x

     export const getTypeSize = typeString => {
      switch (typeString) {
        case "i64":
        case "f64":
          return 8;
        case "i32":
        case "f32":
        case "bool":
        default:
          return 4;
      }
    };