{"version":3,"file":"isStringEvent.cjs","names":["INIT_EVENT","MAX_EXCEEDED_EVENT_TYPE"],"sources":["../../../src/events/functions/isStringEvent.ts"],"sourcesContent":["import {\n  AFTER_EVENT,\n  ALWAYS_EVENT,\n  INIT_EVENT,\n  MAX_EXCEEDED_EVENT_TYPE,\n} from '../constants';\nimport type { EventStrings } from '../types';\n\nconst VALUES: string[] = [INIT_EVENT, MAX_EXCEEDED_EVENT_TYPE];\n\n/**\n * Checks if the provided event is a {@linkcode EventStrings}.\n * @param event of type any, the event to check\n * @returns true if the event is a {@linkcode EventStrings}\n * @satisfies typechecker\n *\n * @see {@linkcode INIT_EVENT} for the initial event.\n * @see {@linkcode ALWAYS_EVENT} for the always event.\n * @see {@linkcode AFTER_EVENT} for the after event.\n * @see {@linkcode MAX_EXCEEDED_EVENT_TYPE} for the max exceeded event.\n */\nexport const isStringEvent = (event: any): event is EventStrings => {\n  const out =\n    typeof event === 'string' &&\n    (VALUES.includes(event) ||\n      event.endsWith(ALWAYS_EVENT) ||\n      event.endsWith(AFTER_EVENT));\n\n  return out;\n};\n"],"mappings":";;;AAQA,MAAM,SAAmB,CAACA,yBAAAA,YAAYC,yBAAAA,wBAAwB;;;;;;;;;;;;AAa9D,MAAa,iBAAiB,UAAsC;AAOlE,QALE,OAAO,UAAU,aAChB,OAAO,SAAS,MAAM,IACrB,MAAM,SAAA,kBAAsB,IAC5B,MAAM,SAAA,iBAAqB"}