@adobe/ecs - v0.2.1
    Preparing search index...

    Function create

    • Declares a rule, which applies in every world, and returns it: identified by that value, labeled by its binding. Throws if it matches on a key that isn't a registered component, derives a component that isn't derived, or derives in a cycle through a negation.

      Type Parameters

      • const D extends Declaration

      Parameters

      • declaration: D & { components: { has?: undefined } }

      Returns { name: string }