{"record":{"id":"deb3f0339252f644","repo":"Kong/insomnia","slug":"types-is-not-supported-yet","errorCode":null,"errorMessage":"types is not supported yet","messagePattern":"types is not supported yet","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia-scripting-environment/src/objects/variables.ts","lineNumber":72,"sourceCode":"   */\n  constructor(def?: VariableDefinition) {\n    super();\n\n    this.id = def ? def.id || '' : '';\n    this.key = def ? def.key : '';\n    this.name = def ? def.name : '';\n    this.value = def ? def.value : '';\n    this.type = def && def.type ? def.type : 'Variable';\n    this.disabled = def ? def.disabled : false;\n  }\n\n  /** @ignore */\n  static override _index = 'key';\n\n  // unknown usage and unsupported\n  /** @ignore */\n  static types() {\n    throw unsupportedError('types');\n  }\n\n  /**\n   * This method casts the provided value to its underlying value if it is a Variable object.\n   *\n   * @param value - The value to be cast. It can be of any type.\n   * @returns The underlying value of the Variable object if the input is a Variable; otherwise, returns `undefined`.\n   */\n  cast(value: any) {\n    if ('_kind' in value && value._kind === 'Variable') {\n      return value.value;\n    }\n    return;\n  }\n\n  /**\n   * Retrieves the current value of the variable.\n   *","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-scripting-environment/src/objects/variables.ts#L54-L90","documentation":"Error \"types is not supported yet\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-scripting-environment/src/objects/variables.ts:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}