• Preparing search index...
  • The search index is not available
matter.js-monorepo
  • matter.js-monorepo
  • @matter/general
  • asyncNew

Function asyncNew

  • asyncNew<const A, const C>(constructor, ...args): Promise<InstanceType<C>>
  • Create an instance of a class implementing the Constructable pattern.

    Type Parameters

    • const A extends any[]
    • const C extends (new (...args: A) => Constructable<any>)

    Parameters

    • constructor: C
    • Rest...args: A

    Returns Promise<InstanceType<C>>

    • Defined in packages/general/src/util/Construction.ts:17

Settings

Member Visibility
matter.js-monorepo
  • Loading...

Generated using TypeDoc