server / Modules / search/types
Module: search/types
Type Aliases
BoolGrid
Ƭ BoolGrid: Boolean
[][]
Defined in
Char
Ƭ Char: string
& { length
: 1
}
Defined in
DicoIndex
Ƭ DicoIndex: number
Defined in
Lemme
Ƭ Lemme: Object
Part of a word withing a grid
Type declaration
Name | Type | Description |
---|---|---|
indexLemme | number | index of the letter in the perpandicular word |
indexWord | number | index of the letter in the word |
lemme | string | the lemme (. or a letter) |
length | number | length of the lemme (2 or 3) |
totalLength | number | length of the perpandicular word |
Defined in
OccurenceByIndex
Ƭ OccurenceByIndex: Record
<number
, Set
<DicoIndex
>>
Data structure for fast access. Key is the index of the letter within the word Value is a set of indexes within the words array
Defined in
OccurenceMap
Ƭ OccurenceMap: Record
<string
, OccurenceByIndex
>
Data structure for fast access. key is a sequence of 2 or 3 letters value is an OccurenceByIndex.
Defined in
SearchResult
Ƭ SearchResult: Object
Result of a search
Type declaration
Name | Type | Description |
---|---|---|
cells | Cell [] | Cells to fit the word into |
impossible? | string [] | Letters that make it impossible to find words |
query | string | The query that was used to find the words |
words | string [] | The list of words found |