Skip to content

assert return value #101

@OoDeLally

Description

@OoDeLally

Would it be possible to powerAssert the return value?
something like

const functionWhichShouldReturnNumber = (x) => {
  assertReturn(Number.isNumber)
  ...
  return 'bad return type'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions