Function assertSkinPart

  • Util function to assert if a given string is a valid asset name.

    Type Parameters

    • T extends
          | "body"
          | "marking"
          | "decoration"
          | "feet"
          | "eyes"

    Parameters

    • type: T
    • Optionalname: string

    Returns name is Asset<T>