@cr_docs_t/dts 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,14 @@ export type Msg<T = undefined> = {
|
|
|
5
5
|
export type ErrMsg = {
|
|
6
6
|
message: string;
|
|
7
7
|
error: string;
|
|
8
|
+
data?: any;
|
|
8
9
|
};
|
|
9
10
|
export type GenericMsg<T> = Msg<T> | ErrMsg;
|
|
11
|
+
export type LatexRenderError = {
|
|
12
|
+
error: {
|
|
13
|
+
line: number;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
success: boolean;
|
|
17
|
+
};
|
|
10
18
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/misc/fetch/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/misc/fetch/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,IAAI;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,KAAK,EAAE;QACH,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
14
14
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
15
15
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
16
16
|
name: z.ZodString;
|
|
17
|
-
serializedCRDTState: z.
|
|
17
|
+
serializedCRDTState: z.ZodOptional<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
18
18
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
contributors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
20
20
|
contributorType: z.ZodEnum<typeof ContributorType>;
|
|
@@ -11,7 +11,7 @@ export const ContributorSchema = z.object({
|
|
|
11
11
|
});
|
|
12
12
|
export const DocumentSchema = IdentifiedSchema.extend({
|
|
13
13
|
name: z.string().min(1, "Name is required"),
|
|
14
|
-
serializedCRDTState: z.
|
|
14
|
+
serializedCRDTState: z.instanceof(Buffer).optional(),
|
|
15
15
|
ownerId: z.string().optional(),
|
|
16
16
|
contributors: z.array(ContributorSchema).default([]),
|
|
17
17
|
projectId: z.string().optional(),
|