How to use the @swim/util.FromAny.is function in @swim/util

To help you get started, we’ve selected a few @swim/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swimos / swim / swim-js / swim-ui-js / @swim / view / main / member / MemberAnimator.ts View on Github external
return View.decorateMemberAnimator.bind(void 0, MemberAnimator.String, inherit);
      } else if (type === Boolean) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Boolean, inherit);
      } else if (type === Number) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Number, inherit);
      } else if (type === Angle) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Angle, inherit);
      } else if (type === Length) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Length, inherit);
      } else if (type === Color) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Color, inherit);
      } else if (type === Font) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Font, inherit);
      } else if (type === Transform) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Transform, inherit);
      } else if (FromAny.is(type)) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Any.bind(void 0, type), inherit);
      }
      throw new TypeError("" + type);
    }
  } as MemberAnimatorClass;
  __extends(MemberAnimator, _super);
github swimos / swim / swim-system-js / swim-ui-js / @swim / view / main / member / MemberAnimator.ts View on Github external
return View.decorateMemberAnimator.bind(void 0, MemberAnimator.String, descriptor);
      } else if (constructor === Boolean) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Boolean, descriptor);
      } else if (constructor === Number) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Number, descriptor);
      } else if (constructor === Angle) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Angle, descriptor);
      } else if (constructor === Length) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Length, descriptor);
      } else if (constructor === Color) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Color, descriptor);
      } else if (constructor === Font) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Font, descriptor);
      } else if (constructor === Transform) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Transform, descriptor);
      } else if (FromAny.is(constructor)) {
        return View.decorateMemberAnimator.bind(void 0, MemberAnimator.Any.bind(void 0, constructor), descriptor);
      }
      throw new TypeError("" + constructor);
    }
  } as MemberAnimatorClass;
  __extends(MemberAnimator, _super);

@swim/util

Interfaces for ordering, equality, hashing, type conversions, functional maps, interpolators, scales, iterators, builders, key-value maps, caches, and assertions

Apache-2.0
Latest version published 5 months ago

Package Health Score

68 / 100
Full package analysis