Migrate webmozart/assert to TypeScript

D Converted · version 2.4.1

webmozart/assert 2.4.1 is a PHP package released under the MIT license and requires PHP ^8.2. Pext migrates it to TypeScript; its PHPUnit suite has not been run against the TypeScript output yet. It has no tracked dependencies, and 7 tracked packages depend on it.

Assertions to validate method input/output with nice error messages.

ConvertsYes
Runs on Node.jsNot yet run
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

The original PHPUnit suite has not been run against the TypeScript output yet. This page will update once it has.

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
^8.2
Extensions
ctypedatefilter

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from webmozart

Upstream

Version
2.4.1
License
MIT
Keywords
assert, check, validate

Migrating a codebase that uses webmozart/assert?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.