Skip to content

Commit

Permalink
Improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 23, 2024
1 parent 21797a8 commit 1fd1d1b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* indexOptions?: 'docs'|'freqs'|'positions'|'offsets',
* store?: bool,
* ignoreAbove?: int,
* multi?: array<string, array<mixed>>,
* multi?: array<string, array<string, mixed>>,
* norms?: 'include'|'omit',
* }
* @link https://www.mongodb.com/docs/atlas/atlas-search/analyzers/character-filters/
Expand Down Expand Up @@ -77,13 +77,20 @@
* } | array{
* excludes: array<string>,
* }
* @link https://www.mongodb.com/docs/atlas/atlas-search/synonyms/#std-label-synonyms-ref
* @phpstan-type TypeSearchIndexSynonyms array{
* analyzer: string,
* name: string,
* source?: array{collection: string},
* }
* @link https://www.mongodb.com/docs/manual/reference/command/createSearchIndexes/#std-label-search-index-definition-create
* @phpstan-type TypeSearchIndexDefinition array{
* analyser?: string,
* analyzer?: string,
* analyzers?: TypeSearchIndexAnalyzer[],
* searchAnalyzer?: string,
* mappings: array{dynamic: true} | array{dynamic?: bool, fields: array<string, TypeSearchIndexField>},
* storedSource?: TypeSearchIndexStoredSource,
* synonyms?: TypeSearchIndexSynonyms[],
* }
* @link https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/#atlas-vector-search-index-fields
* @phpstan-type TypeVectorSearchIndexField array{
Expand Down

0 comments on commit 1fd1d1b

Please sign in to comment.