Object.defineProps

Syntax

defineProps(refClass: Function, names: string[], withSetters: boolean);

Parameters

refClass. Class to which the get/set methods are created

names. Array of names to create the get/set methods

withSetters. It determines the following methods creation:

Description

The defineProps method creates the get and set methods from name array for the specified class.

See also:

Object