FunctionsCommonPropertyCommonProperty CallableCommonProperty<T>(propertyName: string, getter?: () => T, setter?: (T: any) => void): voidDefines a property with the given name and the passed setter and getter@exampleCommonDeprecate( "OldFunc", function NewFunc (a, b) { return a + b; },);Type parametersT: unknownParameterspropertyName: stringThe name for the new propertygetter: () => T = undefinedThe getter function for the propertysetter: (T: any) => void = undefinedThe setter function for the propertyReturns void
Defines a property with the given name and the passed setter and getter