server / Modules / search/types

Module: search/types

Type Aliases

BoolGrid

Ƭ BoolGrid: Boolean[][]

Defined in

search/types.d.ts:17open in new window


Char

Ƭ Char: string & { length: 1 }

Defined in

search/types.d.ts:16open in new window


DicoIndex

Ƭ DicoIndex: number

Defined in

search/types.d.ts:18open in new window


Lemme

Ƭ Lemme: Object

Part of a word withing a grid

Type declaration

NameTypeDescription
indexLemmenumberindex of the letter in the perpandicular word
indexWordnumberindex of the letter in the word
lemmestringthe lemme (. or a letter)
lengthnumberlength of the lemme (2 or 3)
totalLengthnumberlength of the perpandicular word

Defined in

search/types.d.ts:57open in new window


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

search/types.d.ts:24open in new window


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

search/types.d.ts:30open in new window


SearchResult

Ƭ SearchResult: Object

Result of a search

Type declaration

NameTypeDescription
cellsCell[]Cells to fit the word into
impossible?string[]Letters that make it impossible to find words
querystringThe query that was used to find the words
wordsstring[]The list of words found

Defined in

search/types.d.ts:35open in new window