Mercurial
view benchmark/bun-http-framework-benchmark/dev/adonis/contracts/events.ts @ 258:60a876c4587a
[ui] Add semantic primitive ownership
Build a layered Zenbu token and sizing system, make authored controls use native-underneath primitives, migrate mrjunejune without imposing visual surfaces, and document/enforce HTML ownership in the catalog and wiki.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Wed, 05 Aug 2026 05:25:40 -0700 |
| parents | a8976a008a9d |
| children |
line wrap: on
line source
/** * Contract source: https://git.io/JfefG * * Feel free to let us know via PR, if you find something broken in this contract * file. */ declare module '@ioc:Adonis/Core/Event' { /* |-------------------------------------------------------------------------- | Define typed events |-------------------------------------------------------------------------- | | You can define types for events inside the following interface and | AdonisJS will make sure that all listeners and emit calls adheres | to the defined types. | | For example: | | interface EventsList { | 'new:user': UserModel | } | | Now calling `Event.emit('new:user')` will statically ensure that passed value is | an instance of the the UserModel only. | */ interface EventsList { // } }