@tai-kun/surrealdb
Version:
The SurrealDB SDK for JavaScript
72 lines (63 loc) • 1.4 kB
text/typescript
export type * from "./decode-stream";
export { default as decodeStream } from "./decode-stream";
export type * from "./decode";
export { default as decode } from "./decode";
export {
CONTINUE,
type IsSafeMapKey,
type IsSafeObjectKey,
type Reviver,
type ReviverObject,
type SimpleItemReviver,
type TaggedItemReviver,
} from "./decoder";
export type * from "./encode";
export { default as encode } from "./encode";
export {
type AdditionalInfo,
AI_EIGHT_BYTES,
AI_FOUR_BYTES,
AI_INDEFINITE_NUM_BYTES,
AI_ONE_BYTE,
AI_SIMPLE_FALSE,
AI_SIMPLE_NULL,
AI_SIMPLE_TRUE,
AI_SIMPLE_UNDEFINED,
AI_TWO_BYTES,
type DataItem,
type DataItemValue,
HEADER_FALSE,
HEADER_FLOAT_DOUBLE,
HEADER_FLOAT_HALF,
HEADER_NULL,
HEADER_TRUE,
HEADER_UNDEFINED,
type MajorType,
MT_ARRAY,
MT_BYTE_STRING,
MT_MAP,
MT_NEGATIVE_INTEGER,
MT_SIMPLE_FLOAT,
MT_TAG,
MT_UNSIGNED_INTEGER,
MT_UTF8_STRING,
Simple,
} from "./spec";
export type * from "./tagged";
export { default as Tagged } from "./tagged";
export type { ToCBOR } from "./traits";
export { canToCBOR } from "./traits";
export {
type Replacer,
write,
writeBigInt,
writeBoolean,
writeByteString,
writeEncodedUtf8String,
writeHeader,
writeNullable,
writeNumber,
writePayload,
writeUtf8String,
} from "./write-utils";
export type * from "./writer"; // `Writer` も型だけでよし