Skip to content

Commit dab86a7

Browse files
authored
docs: removed unnecessary exports previously added to api docs (aws-powertools#3000)
1 parent 4d6e6b6 commit dab86a7

File tree

21 files changed

+23
-47
lines changed

21 files changed

+23
-47
lines changed

examples/app/functions/commons/helpers/scan-items.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { DebugLogger } from '#types';
66
/**
77
* Scan the DynamoDB table and return all items.
88
*
9-
* @note this function is purposefully not paginated to keep the example simple
9+
* this function is purposefully not paginated to keep the example simple
1010
*
1111
* @param logger A logger instance
1212
*/

packages/batch/src/BasePartialBatchProcessor.ts

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import type {
2222
* This class extends the {@link BasePartialProcessor} class and adds additional
2323
* functionality to handle batch processing. Specifically, it provides methods
2424
* to collect failed records and build the partial failure response.
25-
*
26-
* @abstract
2725
*/
2826
abstract class BasePartialBatchProcessor extends BasePartialProcessor {
2927
/**

packages/batch/src/BasePartialProcessor.ts

-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import type {
1818
* The class comes with a few helper methods and hooks that can be used to prepare
1919
* the processor before processing records, clean up after processing records, and
2020
* handle records that succeed or fail processing.
21-
*
22-
* @abstract
2321
*/
2422
abstract class BasePartialProcessor {
2523
/**
@@ -67,8 +65,6 @@ abstract class BasePartialProcessor {
6765
* This method should be called after processing a full batch to reset the processor.
6866
*
6967
* You can use this as a hook to run any cleanup logic after processing the records.
70-
*
71-
* @abstract
7268
*/
7369
public abstract clean(): void;
7470

@@ -98,8 +94,6 @@ abstract class BasePartialProcessor {
9894
* This method should be called before processing the records
9995
*
10096
* You can use this as a hook to run any setup logic before processing the records.
101-
*
102-
* @abstract
10397
*/
10498
public abstract prepare(): void;
10599

@@ -151,8 +145,6 @@ abstract class BasePartialProcessor {
151145
* This is to ensure that the processor keeps track of the results and the records
152146
* that succeeded and failed processing.
153147
*
154-
* @abstract
155-
*
156148
* @param record Record to be processed
157149
*/
158150
public abstract processRecord(
@@ -171,8 +163,6 @@ abstract class BasePartialProcessor {
171163
* This is to ensure that the processor keeps track of the results and the records
172164
* that succeeded and failed processing.
173165
*
174-
* @abstract
175-
*
176166
* @param record Record to be processed
177167
*/
178168
public abstract processRecordSync(

packages/commons/src/LRUCache.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class Item<K, V> {
4646
* which is licensed under the MIT license and [recommends users to copy the code into their
4747
* own projects](https://github.com/rsms/js-lru/tree/master#usage).
4848
*
49-
* @typeparam K - The type of the key
50-
* @typeparam V - The type of the value
49+
* @typeParam K - The type of the key
50+
* @typeParam V - The type of the value
5151
*/
5252
class LRUCache<K, V> {
5353
private leastRecentlyUsed?: Item<K, V>;

packages/commons/src/config/EnvironmentVariablesService.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js'
1717
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/#environment-variables
1818
*
1919
* @class
20-
* @implements {ConfigServiceInterface}
2120
*/
2221
class EnvironmentVariablesService implements ConfigServiceInterface {
2322
/**

packages/commons/src/middleware/cleanupMiddlewares.ts

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const isFunction = (obj: unknown): obj is CleanupFunction => {
5959
* ```
6060
*
6161
* @param request The Middy request object
62-
* @param options An optional object that can be used to pass options to the function
6362
*/
6463
const cleanupMiddlewares = async (request: MiddyLikeRequest): Promise<void> => {
6564
const cleanupFunctionNames = [

packages/commons/src/types/ConfigServiceInterface.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* @abstract ConfigServiceInterface
3-
*
42
* This class defines common methods and variables that can be set by the developer
53
* in the runtime.
64
*/

packages/commons/src/types/middy.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Context } from 'aws-lambda';
33
/**
44
* This type represents the shape of a Middy.js request object.
55
*
6-
* @note We need to define these types and interfaces here because we can't import them from Middy.js.
6+
* We need to define these types and interfaces here because we can't import them from Middy.js.
77
*
88
* Importing them from Middy.js would introduce a dependency on it, which we don't want
99
* because we want to keep it as an optional dependency.
@@ -72,7 +72,8 @@ type MiddyLikeRequest = {
7272
* Each Powertools for AWS middleware that needs to perform cleanup operations will
7373
* store a cleanup function with this signature in the `request.internal` object.
7474
*
75-
* @see {@link cleanupMiddlewares}
75+
* @see {@link middleware/cleanupMiddlewares.cleanupMiddlewares}
76+
*
7677
*/
7778
type CleanupFunction = (request: MiddyLikeRequest) => Promise<void>;
7879

packages/commons/typedoc.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"entryPoints": [
66
"./src/index.ts",
77
"./src/types/index.ts",
8+
"./src/middleware/cleanupMiddlewares.ts",
89
"./src/typeUtils.ts",
910
"./src/fromBase64.ts",
1011
"./src/LRUCache.ts"

packages/idempotency/src/config/EnvironmentVariablesService.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js';
21
import { EnvironmentVariablesService as CommonEnvironmentVariablesService } from '@aws-lambda-powertools/commons';
2+
import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js';
33

44
/**
55
* Class EnvironmentVariablesService
@@ -11,7 +11,6 @@ import { EnvironmentVariablesService as CommonEnvironmentVariablesService } from
1111
*
1212
* @class
1313
* @extends {CommonEnvironmentVariablesService}
14-
* @implements {ConfigServiceInterface}
1514
* @see https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
1615
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/#environment-variables
1716
*/

packages/idempotency/src/types/DynamoDBPersistence.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ interface DynamoDBPersistenceOptionsWithClientInstance
6262
}
6363

6464
/**
65-
* Options for the {@link DynamoDBPersistenceLayer} class constructor.
65+
* Options for the {@link persistence/DynamoDBPersistenceLayer.DynamoDBPersistenceLayer | DynamoDBPersistenceLayer} class constructor.
6666
*
6767
* @see {@link DynamoDBPersistenceOptionsBase}, {@link DynamoDBPersistenceOptionsWithClientConfig}, and {@link DynamoDBPersistenceOptionsWithClientInstance} for full list of properties.
6868
*

packages/idempotency/src/types/IdempotencyOptions.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import type { BasePersistenceLayer } from '../persistence/BasePersistenceLayer.j
66
/**
77
* Configuration options for the idempotency utility.
88
*
9-
* When making a function idempotent you should always set
10-
* a persistence store (i.e. @see {@link persistence/DynamoDBPersistenceLayer.DynamoDBPersistenceLayer | DynamoDBPersistenceLayer}).
9+
* When making a function idempotent you should always set a persistence store.
10+
*
11+
* @see {@link persistence/DynamoDBPersistenceLayer.DynamoDBPersistenceLayer | DynamoDBPersistenceLayer}
1112
*
1213
* Optionally, you can also pass a custom configuration object,
1314
* this allows you to customize the behavior of the idempotency utility.

packages/jmespath/src/PowertoolsFunctions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const decoder = new TextDecoder('utf-8');
2929
* console.log(result); // { foo: 'bar' }
3030
* ```
3131
*
32-
* When using the {@link extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
32+
* When using the {@link envelopes.extractDataFromEnvelope} function, the PowertoolsFunctions class is automatically used.
3333
*
3434
*/
3535
class PowertoolsFunctions extends Functions {

packages/logger/src/types/Logger.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type InjectLambdaContextOptions = {
4040
*/
4141
clearState?: boolean;
4242
/**
43-
* If `true`, the logger will reset the keys added via {@link `appendKeys()`}
43+
* If `true`, the logger will reset the keys added via {@link index.Logger.appendKeys()}
4444
*/
4545
resetKeys?: boolean;
4646
};
@@ -197,7 +197,4 @@ export type {
197197
ConstructorOptions,
198198
InjectLambdaContextOptions,
199199
CustomJsonReplacerFn,
200-
BaseConstructorOptions,
201-
PersistentKeysOption,
202-
DeprecatedOption,
203200
};

packages/logger/src/types/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ export type {
55
LogLevelThresholds,
66
LogAttributes,
77
LogLevel,
8-
LogFormatterInterface,
9-
LogItemInterface,
10-
LogFormatterOptions,
118
} from './Log.js';
129
export type {
1310
LogItemMessage,
@@ -19,7 +16,4 @@ export type {
1916
InjectLambdaContextOptions,
2017
CustomJsonReplacerFn,
2118
LoggerInterface,
22-
BaseConstructorOptions,
23-
PersistentKeysOption,
24-
DeprecatedOption,
2519
} from './Logger.js';

packages/logger/typedoc.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"entryPoints": [
44
"./src/index.ts",
55
"./src/types/index.ts",
6-
"./src/types/ConfigServiceInterface.ts",
7-
"./src/middleware/middy.ts",
8-
"./src/formatter/LogFormatter.ts",
9-
"./src/config/EnvironmentVariablesService.ts"
6+
"./src/middleware/middy.ts"
107
],
118
"readme": "README.md"
129
}

packages/parameters/src/base/transformValue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type { TransformOptions } from '../types/BaseProvider.js';
2323
*
2424
* If the transformation fails, the function will return the value as-is unless `throwOnTransformError` is set to `true`.
2525
*
26-
* @note When using `auto` mode, the key must end with either `.json` or `.binary` to be transformed. Automatic transformation is supported only for
26+
* When using `auto` mode, the key must end with either `.json` or `.binary` to be transformed. Automatic transformation is supported only for
2727
* `getMultiple` calls.
2828
*
2929
* @param {string | Uint8Array} value - Value to be transformed

packages/parser/src/middleware/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { ParserOptions, ParserOutput } from '../types/parser.js';
88
/**
99
* A middiy middleware to parse your event.
1010
*
11-
* @exmaple
11+
* @example
1212
* ```typescript
1313
* import { parser } from '@aws-lambda-powertools/parser/middleware';
1414
* import middy from '@middy/core';

packages/parser/src/types/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type {
2929
KinesisFireHoseSqsEvent,
3030
LambdaFunctionUrlEvent,
3131
SesEvent,
32+
SnsSqsNotification,
3233
S3ObjectLambdaEvent,
3334
VpcLatticeEvent,
3435
VpcLatticeEventV2,

packages/tracer/src/provider/ProviderService.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ProviderService implements ProviderServiceInterface {
9999
/**
100100
* Create a segment at the start of a request made with `undici` or `fetch`.
101101
*
102-
* @note that `message` must be `unknown` because that's the type expected by `subscribe`
102+
* That `message` must be `unknown` because that's the type expected by `subscribe`
103103
*
104104
* @param message The message received from the `undici` channel
105105
*/
@@ -129,7 +129,7 @@ class ProviderService implements ProviderServiceInterface {
129129
* Enrich the subsegment with the response details, and close it.
130130
* Then, set the parent segment as the active segment.
131131
*
132-
* @note that `message` must be `unknown` because that's the type expected by `subscribe`
132+
* `message` must be `unknown` because that's the type expected by `subscribe`
133133
*
134134
* @param message The message received from the `undici` channel
135135
*/
@@ -174,7 +174,7 @@ class ProviderService implements ProviderServiceInterface {
174174
* This is used to handle the case when the request fails to establish a connection with the server or timeouts.
175175
* In all other cases, for example, when the server returns a 4xx or 5xx status code, the error is added in the `onResponse` function.
176176
*
177-
* @note that `message` must be `unknown` because that's the type expected by `subscribe`
177+
* that `message` must be `unknown` because that's the type expected by `subscribe`
178178
*
179179
* @param message The message received from the `undici` channel
180180
*/

typedoc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"layers",
1414
"examples/**",
1515
"packages/event-handler",
16+
"packages/testing"
1617
],
17-
"plugin": ["typedoc-plugin-zod"],
18+
"plugin": ["typedoc-plugin-zod", "typedoc-plugin-missing-exports"],
1819
"skipErrorChecking": true,
1920
"excludePrivate": true,
2021
"visibilityFilters": {

0 commit comments

Comments
 (0)