Skip to content

Commit ca912f0

Browse files
committed
fix: update imports for types and cleanup js docs on the require flags enabled decorator
Signed-off-by: Kaushal Kapasi <[email protected]>
1 parent 0d3ccd7 commit ca912f0

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

packages/nest/src/require-flags-enabled.decorator.ts

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import {
2-
applyDecorators,
3-
CallHandler,
4-
ExecutionContext,
5-
HttpException,
6-
mixin,
7-
NestInterceptor,
8-
NotFoundException,
9-
UseInterceptors,
10-
} from '@nestjs/common';
1+
import type { CallHandler, ExecutionContext, HttpException, NestInterceptor } from '@nestjs/common';
2+
import { applyDecorators, mixin, NotFoundException, UseInterceptors } from '@nestjs/common';
3+
import type { Client } from '@openfeature/server-sdk';
114
import { OpenFeature } from '@openfeature/server-sdk';
125

136
/**
@@ -57,8 +50,8 @@ function getClientForEvaluation(domain?: string) {
5750
* @Get('/')
5851
* public async handleGetRequest()
5952
* ```
60-
* @param {RequireFlagsEnabledProps} options The options for injecting the feature flag.
61-
* @returns {Decorator}
53+
* @param {RequireFlagsEnabledProps} props The options for injecting the feature flag.
54+
* @returns {ClassDecorator & MethodDecorator} The decorator that can be used to require Boolean Feature Flags to be enabled for a controller or a specific route.
6255
*/
6356
export const RequireFlagsEnabled = (props: RequireFlagsEnabledProps): ClassDecorator & MethodDecorator =>
6457
applyDecorators(UseInterceptors(FlagsEnabledInterceptor(props)));

0 commit comments

Comments
 (0)