mwg API
    Preparing search index...

    Function attributeTypeDescription

    • How a diagnostic describes a declared attribute type, naming the alternatives when the type is a closed list rather than one of the shared value types.

      Parameters

      Returns string

      import { attributeTypeDescription } from '@datamoc/mw_games/mwl';

      console.log(attributeTypeDescription(['literal', 'number'])); // 'one of literal, number'