- Preparing search index...
- The search index is not available
pgul
- addAccessor<T>(obj: T, prop: string, accessor: {
get: ((this: T) => any);
set: ((this: T, v: any) => any);
}): void
-
Parameters
-
obj: T
-
prop: string
-
accessor: {
get: ((this: T) => any);
set: ((this: T, v: any) => any);
}
-
get: ((this: T) => any)
-
- (this: T): any
-
Returns any
-
set: ((this: T, v: any) => any)
-
- (this: T, v: any): any
-
Returns any
Returns void
[en] Add accessor via extending Object prototypes
Example