properties.d.ts 624 B

1234567891011121314151617181920212223
  1. /**
  2. * Property helper functions.
  3. *
  4. * @_subsection api/utils:Properties [about-properties]
  5. */
  6. /**
  7. * Resolves to a new object that is a copy of %%value%%, but with all
  8. * values resolved.
  9. */
  10. export declare function resolveProperties<T>(value: {
  11. [P in keyof T]: T[P] | Promise<T[P]>;
  12. }): Promise<T>;
  13. /**
  14. * Assigns the %%values%% to %%target%% as read-only values.
  15. *
  16. * It %%types%% is specified, the values are checked.
  17. */
  18. export declare function defineProperties<T>(target: T, values: {
  19. [K in keyof T]?: T[K];
  20. }, types?: {
  21. [K in keyof T]?: string;
  22. }): void;
  23. //# sourceMappingURL=properties.d.ts.map