Update to new textslice

This commit is contained in:
Paul Frazee 2022-11-04 17:56:48 -05:00
parent f333a90fab
commit 3f730f1173
6 changed files with 40 additions and 34 deletions

View file

@ -12936,17 +12936,18 @@ var recordSchemaDict = {
}
},
textSlice: {
type: "array",
items: [
{
type: "number"
type: "object",
required: ["start", "end"],
properties: {
start: {
type: "number",
minimum: 0
},
{
type: "number"
end: {
type: "number",
minimum: 0
}
],
minItems: 2,
maxItems: 2
}
},
postRef: {
type: "object",
@ -12992,17 +12993,18 @@ var recordSchemaDict = {
}
},
textSlice: {
type: "array",
items: [
{
type: "number"
type: "object",
required: ["start", "end"],
properties: {
start: {
type: "number",
minimum: 0
},
{
type: "number"
end: {
type: "number",
minimum: 0
}
],
minItems: 2,
maxItems: 2
}
}
}
},

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,3 @@
export declare type TextSlice = [number, number];
export interface Record {
text: string;
entities?: Entity[];
@ -16,6 +15,11 @@ export interface Entity {
value: string;
[k: string]: unknown;
}
export interface TextSlice {
start: number;
end: number;
[k: string]: unknown;
}
export interface PostRef {
uri: string;
cid: string;

File diff suppressed because one or more lines are too long