|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
684 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Creates an object that inherits from the prototype object.
|
|---|
| 3 | *
|
|---|
| 4 | * If `properties` are provided, they will be added to the new object.
|
|---|
| 5 | * Only string-keyed enumerable properties directly owned by the `properties` object are copied.
|
|---|
| 6 | * Inherited properties or those with `Symbol` keys are not copied.
|
|---|
| 7 | *
|
|---|
| 8 | * @template T - The prototype object type.
|
|---|
| 9 | * @template U - The properties object type.
|
|---|
| 10 | * @param {T} prototype - The object to inherit from.
|
|---|
| 11 | * @param {U} properties - The properties to assign to the created object.
|
|---|
| 12 | * @returns {T & U} The new object.
|
|---|
| 13 | */
|
|---|
| 14 | declare function create<T extends object, U extends object>(prototype: T, properties?: U): T & U;
|
|---|
| 15 |
|
|---|
| 16 | export { create };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.