UNPKG

@atproto/lexicon

Version:

atproto Lexicon schema language library

13 lines 661 B
import { IpldValue, JsonValue } from '@atproto/common-web'; import { BlobRef } from './blob-refs'; export type LexValue = IpldValue | BlobRef | Array<LexValue> | { [key: string]: LexValue; }; export type RepoRecord = Record<string, LexValue>; export declare const lexToIpld: (val: LexValue) => IpldValue; export declare const ipldToLex: (val: IpldValue) => LexValue; export declare const lexToJson: (val: LexValue) => JsonValue; export declare const stringifyLex: (val: LexValue) => string; export declare const jsonToLex: (val: JsonValue) => LexValue; export declare const jsonStringToLex: (val: string) => LexValue; //# sourceMappingURL=serialize.d.ts.map