Skip to content

Commit 810e842

Browse files
committed
fix: exports
align exports with v4 as much as possible
1 parent 5295926 commit 810e842

File tree

4 files changed

+29
-14
lines changed

4 files changed

+29
-14
lines changed

packages/client/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export { RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping/*
22
export { RESP_TYPES } from './lib/RESP/decoder';
33
export { VerbatimString } from './lib/RESP/verbatim-string';
44
export { defineScript } from './lib/lua-script';
5-
// export * from './lib/errors';
5+
export * from './lib/errors';
66

77
import RedisClient, { RedisClientOptions, RedisClientType } from './lib/client';
88
export { RedisClientOptions, RedisClientType };
@@ -20,8 +20,8 @@ import RedisSentinel from './lib/sentinel';
2020
export { RedisSentinelOptions, RedisSentinelType } from './lib/sentinel/types';
2121
export const createSentinel = RedisSentinel.create;
2222

23-
// export { GeoReplyWith } from './lib/commands/generic-transformers';
23+
export { GEO_REPLY_WITH, GeoReplyWith } from './lib/commands/GEOSEARCH_WITH';
2424

2525
// export { SetOptions } from './lib/commands/SET';
2626

27-
// export { RedisFlushModes } from './lib/commands/FLUSHALL';
27+
export { REDIS_FLUSH_MODES } from './lib/commands/FLUSHALL';

packages/redis/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import RedisJSON from '@redis/json';
1919
import RediSearch from '@redis/search';
2020
import RedisTimeSeries from '@redis/time-series';
2121

22-
// export * from '@redis/client';
23-
// export * from '@redis/bloom';
24-
// export * from '@redis/json';
25-
// export * from '@redis/search';
26-
// export * from '@redis/time-series';
22+
export * from '@redis/client';
23+
export * from '@redis/bloom';
24+
export * from '@redis/json';
25+
export * from '@redis/search';
26+
export * from '@redis/time-series';
2727

2828
const modules = {
2929
...RedisBloomModules,

packages/search/lib/index.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
export { default } from './commands';
1+
export { default } from './commands'
22

3-
export { SCHEMA_FIELD_TYPE, SchemaFieldType } from './commands/CREATE';
4-
5-
// export { RediSearchSchema, RedisSearchLanguages, SchemaFieldTypes, SchemaTextFieldPhonetics, SearchReply, VectorAlgorithms } from './commands';
6-
// export { AggregateGroupByReducers, AggregateSteps } from './commands/AGGREGATE';
7-
// export { SearchOptions } from './commands/SEARCH';
3+
export { SearchReply } from './commands/SEARCH'
4+
export { RediSearchSchema } from './commands/CREATE'
5+
export {
6+
REDISEARCH_LANGUAGE,
7+
RediSearchLanguage,
8+
SCHEMA_FIELD_TYPE,
9+
SchemaFieldType,
10+
SCHEMA_TEXT_FIELD_PHONETIC,
11+
SchemaTextFieldPhonetic,
12+
SCHEMA_VECTOR_FIELD_ALGORITHM,
13+
SchemaVectorFieldAlgorithm
14+
} from './commands/CREATE'
15+
export {
16+
FT_AGGREGATE_GROUP_BY_REDUCERS,
17+
FtAggregateGroupByReducer,
18+
FT_AGGREGATE_STEPS,
19+
FtAggregateStep
20+
} from './commands/AGGREGATE'
21+
export { FtSearchOptions } from './commands/SEARCH'

packages/time-series/lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export {
55
} from './commands';
66
export { TIME_SERIES_AGGREGATION_TYPE, TimeSeriesAggregationType } from './commands/CREATERULE';
77
export { TIME_SERIES_BUCKET_TIMESTAMP, TimeSeriesBucketTimestamp } from './commands/RANGE';
8+
export { TIME_SERIES_REDUCERS } from './commands/MRANGE_GROUPBY';

0 commit comments

Comments
 (0)