2022-11-30 23:44:23 +03:00
|
|
|
/**
|
|
|
|
* Property helper functions.
|
|
|
|
*
|
2022-12-03 05:27:06 +03:00
|
|
|
* @_subsection api/utils:Properties [about-properties]
|
2022-11-30 23:44:23 +03:00
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Resolves to a new object that is a copy of %%value%%, but with all
|
|
|
|
* values resolved.
|
|
|
|
*/
|
2022-09-05 23:57:11 +03:00
|
|
|
export declare function resolveProperties<T>(value: {
|
|
|
|
[P in keyof T]: T[P] | Promise<T[P]>;
|
|
|
|
}): Promise<T>;
|
2022-11-30 23:44:23 +03:00
|
|
|
/**
|
|
|
|
* Assigns the %%values%% to %%target%% as read-only values.
|
|
|
|
*
|
|
|
|
* It %%types%% is specified, the values are checked.
|
|
|
|
*/
|
2022-09-05 23:57:11 +03:00
|
|
|
export declare function defineProperties<T>(target: T, values: {
|
2022-11-30 23:44:23 +03:00
|
|
|
[K in keyof T]?: T[K];
|
2022-09-05 23:57:11 +03:00
|
|
|
}, types?: {
|
|
|
|
[K in keyof T]?: string;
|
|
|
|
}): void;
|
|
|
|
//# sourceMappingURL=properties.d.ts.map
|