message: use generic type in valueFn
diff: -import { Vector2 } from '../types'
  -
  -// blank function
  export function noop() {}
  @@ -42,6 +39,13 @@ export function matchKeysFromObject<T extends object, K extends object>(obj: T,
  return o
  }
  -export function valueFn(v: Vector2 | (() => Vector2)) {
  - return typeof v === 'function' ? v() : v
  +
  +
  +export function valueFn<T>(v: T | (() => T)): T {
  + if (typeof v === "function") {
  + // @ts-ignore
  + return v()
  + } else {
  + return v
  + }
  }
  