@webdeveric/utils
    Preparing search index...

    Function assume

    • This function is used to create a type guard that always returns true, effectively allowing the input to be treated as the specified type without any runtime checks.

      Type Parameters

      • Type

      Parameters

      • _input: unknown
      • ..._args: any[]

      Returns _input is Type

      assume<string>(42); // true (no runtime check is performed)