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