@jam.dev/sdk
Version:
The Jam SDK! Supercharge your bug reports.
15 lines (14 loc) • 584 B
TypeScript
type SerializablePrimitive = string | number | boolean | null | undefined;
type SerializableArray = Serializable[];
export interface SerializableObject extends Record<string | number, Serializable> {
}
type Serializable = SerializablePrimitive | SerializableArray | SerializableObject;
/**
* The function you pass into this metadata call
* should the return custom info that you want
* to include in every bug report.
*
* Docs here: https://jam.dev/docs/product-features/dev-tools/jam.metadata
*/
export declare function metadata(fn: () => SerializableObject): void;
export {};