{"version":3,"file":"is-typed.mjs","names":[],"sources":["../src/is-typed.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n                       🗲 Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website:                  https://stormsoftware.com\n Repository:               https://github.com/storm-software/stryke\n Documentation:            https://docs.stormsoftware.com/projects/stryke\n Contact:                  https://stormsoftware.com/contact\n\n SPDX-License-Identifier:  Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Typed } from \"@stryke/types/base\";\nimport { isObject } from \"./is-object\";\nimport { isSet } from \"./is-set\";\n\n/**\n * Check if the provided value has a `__typename` property\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided has a `__typename` property\n */\nexport const isTyped = (value: unknown): value is Typed => {\n  try {\n    return isSet(value) && isObject(value) && \"__typename\" in value;\n  } catch {\n    return false;\n  }\n};\n"],"mappings":";;;;;;;;;;AA4BA,MAAa,WAAW,UAAmC;AACzD,KAAI;AACF,SAAO,MAAM,MAAM,IAAI,SAAS,MAAM,IAAI,gBAAgB;SACpD;AACN,SAAO"}