Skip to content

Commit dab86a7

Browse files
authored
docs: removed unnecessary exports previously added to api docs (#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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 10 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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
*/

0 commit comments

Comments
 (0)