Skip to content

Commit

Permalink
feat: introduce new type
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Jul 19, 2024
1 parent 29b1521 commit 3bf73f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/appendable/appendable.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const (
FieldTypeBigram

FieldTypeUnigram

FieldTypeVector
)

func (t FieldType) TypescriptType() string {
Expand All @@ -81,6 +83,11 @@ func (t FieldType) TypescriptType() string {
if t&FieldTypeNull != 0 {
components = append(components, "null")
}

if t&FieldTypeVector != 0 {
components = append(components, "number[]")
}

if len(components) == 0 {
return "unknown"
}
Expand Down

0 comments on commit 3bf73f9

Please sign in to comment.