UNPKG

voyageai

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fvoyage-ai%2Ftypescript-sdk) [![npm shield](

9 lines (8 loc) 501 B
import { Schema } from "../../Schema"; export declare function property<RawKey extends string, RawValue, ParsedValue>(rawKey: RawKey, valueSchema: Schema<RawValue, ParsedValue>): Property<RawKey, RawValue, ParsedValue>; export interface Property<RawKey extends string, RawValue, ParsedValue> { rawKey: RawKey; valueSchema: Schema<RawValue, ParsedValue>; isProperty: true; } export declare function isProperty<O extends Property<any, any, any>>(maybeProperty: unknown): maybeProperty is O;