@deployport/specular-runtime
Version:
Runtime for Specular API clients with support for Node.js and Browser
21 lines (20 loc) • 649 B
TypeScript
import Package from "../metadata/package.js";
import { StructPath } from "../metadata/struct.js";
import Content from "./content.js";
/**
* HydrateContext is used to hydrate a struct from a content
*/
export declare class HydrateContext {
readonly content: Content;
readonly package: Package;
constructor(content: Content, pkg: Package);
}
export interface ExplicitRecord<T> {
[key: string]: T;
}
export interface StructInterface {
__structPath: StructPath;
}
export type GenericProperties = ExplicitRecord<any>;
export type SerializedProperties = ExplicitRecord<any>;
export type Struct = GenericProperties & StructInterface;