LogoPixi’VN
coreFunctions

Function: copyProperty()

> copyProperty<From, FromKey, ToKey, To>(type, from, to, fromKey, toKey): void

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:4848

Copies a property at only if it matches the type.

Type Parameters

From

From

FromKey

FromKey extends string | number | symbol

ToKey

ToKey extends string | number | symbol

To

To extends Partial<Record<ToKey, From[FromKey]>>

Parameters

type

string

Type expected to match typeof on the property.

from

From

Source object.

to

To

Destination object.

fromKey

FromKey

Key of the property in source object.

toKey

ToKey

Key of the property in destination object.

Returns

void

On this page