Skip to content

Commit 897e7b8

Browse files
committed
Prettier
1 parent 23b89ad commit 897e7b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1474
-1084
lines changed

src/administration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type EngineInfo = {
5858
* Index type aliases supported by the storage engine.
5959
*/
6060
indexes?: Record<string, string>;
61-
}
61+
};
6262
};
6363
};
6464

@@ -127,7 +127,7 @@ export type ServerStatusInformation = {
127127
*/
128128
foxxApi: boolean;
129129
/**
130-
* A host identifier defined by the HOST or NODE_NAME environment variable,
130+
* A host identifier defined by the HOST or NODE_NAME environment variable,
131131
* or a fallback value using a machine identifier or the cluster/Agency address.
132132
*/
133133
host: string;
@@ -318,7 +318,7 @@ export type ClusterSupportInfo = {
318318
* Number of servers in the cluster.
319319
*/
320320
servers: number;
321-
}
321+
};
322322
};
323323
/**
324324
* (Cluster only.) Information about the ArangoDB instance as well as the
@@ -347,4 +347,4 @@ export interface QueueTimeMetrics {
347347
* in seconds.
348348
*/
349349
getAvg(): number;
350-
};
350+
}

src/analyzers.ts

Lines changed: 75 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -77,43 +77,42 @@ export type CreateAnalyzerOptions =
7777

7878
type CreateAnalyzerOptionsType<
7979
Type extends AnalyzerType,
80-
Properties = void
80+
Properties = void,
8181
> = Properties extends void
8282
? {
83-
/**
84-
* Type of the Analyzer.
85-
*/
86-
type: Type;
87-
/**
88-
* Features to enable for this Analyzer.
89-
*/
90-
features?: AnalyzerFeature[];
91-
/**
92-
* This Analyzer does not take additional properties.
93-
*/
94-
properties?: Record<string, never>;
95-
}
83+
/**
84+
* Type of the Analyzer.
85+
*/
86+
type: Type;
87+
/**
88+
* Features to enable for this Analyzer.
89+
*/
90+
features?: AnalyzerFeature[];
91+
/**
92+
* This Analyzer does not take additional properties.
93+
*/
94+
properties?: Record<string, never>;
95+
}
9696
: {
97-
/**
98-
* Type of the Analyzer.
99-
*/
100-
type: Type;
101-
/**
102-
* Features to enable for this Analyzer.
103-
*/
104-
features?: AnalyzerFeature[];
105-
/**
106-
* Additional properties for the Analyzer.
107-
*/
108-
properties: Properties;
109-
};
97+
/**
98+
* Type of the Analyzer.
99+
*/
100+
type: Type;
101+
/**
102+
* Features to enable for this Analyzer.
103+
*/
104+
features?: AnalyzerFeature[];
105+
/**
106+
* Additional properties for the Analyzer.
107+
*/
108+
properties: Properties;
109+
};
110110

111111
/**
112112
* Options for creating an Identity Analyzer.
113113
*/
114-
export type CreateIdentityAnalyzerOptions = CreateAnalyzerOptionsType<
115-
"identity"
116-
>;
114+
export type CreateIdentityAnalyzerOptions =
115+
CreateAnalyzerOptionsType<"identity">;
117116

118117
/**
119118
* Options for creating a Delimiter Analyzer.
@@ -122,12 +121,12 @@ export type CreateDelimiterAnalyzerOptions = CreateAnalyzerOptionsType<
122121
"delimiter",
123122
| string
124123
| {
125-
/**
126-
* This value will be used as delimiter to split text into tokens as
127-
* specified in RFC 4180, without starting new records on newlines.
128-
*/
129-
delimiter: string;
130-
}
124+
/**
125+
* This value will be used as delimiter to split text into tokens as
126+
* specified in RFC 4180, without starting new records on newlines.
127+
*/
128+
delimiter: string;
129+
}
131130
>;
132131

133132
/**
@@ -583,7 +582,7 @@ export type AnalyzerDescription =
583582
*/
584583
type AnalyzerDescriptionType<
585584
Type extends string,
586-
Properties = Record<string, never>
585+
Properties = Record<string, never>,
587586
> = {
588587
/**
589588
* A unique name for this Analyzer.
@@ -932,43 +931,43 @@ export class Analyzer {
932931
* ```
933932
*/
934933
create<Options extends CreateAnalyzerOptions>(
935-
options: Options
934+
options: Options,
936935
): Promise<
937936
Options extends CreateIdentityAnalyzerOptions
938-
? IdentityAnalyzerDescription
939-
: Options extends CreateDelimiterAnalyzerOptions
940-
? DelimiterAnalyzerDescription
941-
: Options extends CreateStemAnalyzerOptions
942-
? StemAnalyzerDescription
943-
: Options extends CreateNormAnalyzerOptions
944-
? NormAnalyzerDescription
945-
: Options extends CreateNgramAnalyzerOptions
946-
? NgramAnalyzerDescription
947-
: Options extends CreateTextAnalyzerOptions
948-
? TextAnalyzerDescription
949-
: Options extends CreateSegmentationAnalyzerOptions
950-
? SegmentationAnalyzerDescription
951-
: Options extends CreateAqlAnalyzerOptions
952-
? AqlAnalyzerDescription
953-
: Options extends CreatePipelineAnalyzerOptions
954-
? PipelineAnalyzerDescription
955-
: Options extends CreateStopwordsAnalyzerOptions
956-
? StopwordsAnalyzerDescription
957-
: Options extends CreateCollationAnalyzerOptions
958-
? CollationAnalyzerDescription
959-
: Options extends CreateMinHashAnalyzerOptions
960-
? MinHashAnalyzerDescription
961-
: Options extends CreateClassificationAnalyzerOptions
962-
? ClassificationAnalyzerDescription
963-
: Options extends CreateNearestNeighborsAnalyzerOptions
964-
? NearestNeighborsAnalyzerDescription
965-
: Options extends CreateGeoJsonAnalyzerOptions
966-
? GeoJsonAnalyzerDescription
967-
: Options extends CreateGeoPointAnalyzerOptions
968-
? GeoPointAnalyzerDescription
969-
: Options extends CreateGeoS2AnalyzerOptions
970-
? GeoS2AnalyzerDescription
971-
: AnalyzerDescription
937+
? IdentityAnalyzerDescription
938+
: Options extends CreateDelimiterAnalyzerOptions
939+
? DelimiterAnalyzerDescription
940+
: Options extends CreateStemAnalyzerOptions
941+
? StemAnalyzerDescription
942+
: Options extends CreateNormAnalyzerOptions
943+
? NormAnalyzerDescription
944+
: Options extends CreateNgramAnalyzerOptions
945+
? NgramAnalyzerDescription
946+
: Options extends CreateTextAnalyzerOptions
947+
? TextAnalyzerDescription
948+
: Options extends CreateSegmentationAnalyzerOptions
949+
? SegmentationAnalyzerDescription
950+
: Options extends CreateAqlAnalyzerOptions
951+
? AqlAnalyzerDescription
952+
: Options extends CreatePipelineAnalyzerOptions
953+
? PipelineAnalyzerDescription
954+
: Options extends CreateStopwordsAnalyzerOptions
955+
? StopwordsAnalyzerDescription
956+
: Options extends CreateCollationAnalyzerOptions
957+
? CollationAnalyzerDescription
958+
: Options extends CreateMinHashAnalyzerOptions
959+
? MinHashAnalyzerDescription
960+
: Options extends CreateClassificationAnalyzerOptions
961+
? ClassificationAnalyzerDescription
962+
: Options extends CreateNearestNeighborsAnalyzerOptions
963+
? NearestNeighborsAnalyzerDescription
964+
: Options extends CreateGeoJsonAnalyzerOptions
965+
? GeoJsonAnalyzerDescription
966+
: Options extends CreateGeoPointAnalyzerOptions
967+
? GeoPointAnalyzerDescription
968+
: Options extends CreateGeoS2AnalyzerOptions
969+
? GeoS2AnalyzerDescription
970+
: AnalyzerDescription
972971
> {
973972
return this._db.request({
974973
method: "POST",
@@ -991,12 +990,14 @@ export class Analyzer {
991990
* // the Analyzer "some-analyzer" no longer exists
992991
* ```
993992
*/
994-
drop(force: boolean = false): Promise<connection.ArangoApiResponse<{ name: string }>> {
993+
drop(
994+
force: boolean = false,
995+
): Promise<connection.ArangoApiResponse<{ name: string }>> {
995996
return this._db.request({
996997
method: "DELETE",
997998
pathname: `/_api/analyzer/${encodeURIComponent(this._name)}`,
998999
search: { force },
9991000
});
10001001
}
10011002
}
1002-
//#endregion
1003+
//#endregion

src/aql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export function aql<T = any>(
224224
2,
225225
strings[i] + src.strings[0],
226226
...src.strings.slice(1, src.args.length),
227-
src.strings[src.args.length] + strings[i + 1]
227+
src.strings[src.args.length] + strings[i + 1],
228228
);
229229
} else {
230230
query += rawValue.query + strings[i + 1];
@@ -319,7 +319,7 @@ export function aql<T = any>(
319319
* ```
320320
*/
321321
export function literal(
322-
value: string | number | boolean | AqlLiteral | null | undefined
322+
value: string | number | boolean | AqlLiteral | null | undefined,
323323
): AqlLiteral {
324324
if (isAqlLiteral(value)) {
325325
return value;

0 commit comments

Comments
 (0)