Skip to content

Commit 133ef6c

Browse files
committed
Fix JSDoc errors after merge with main
1 parent 95e3af5 commit 133ef6c

File tree

8 files changed

+44
-16
lines changed

8 files changed

+44
-16
lines changed

library/src/methods/brand/brand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ export type SchemaWithBrand<
3535
};
3636
};
3737

38+
/**
39+
* Brands the output type of a schema.
40+
*
41+
* @param schema The scheme to be branded.
42+
* @param name The brand name.
43+
*
44+
* @returns The branded schema.
45+
*/
3846
export function brand<
3947
TSchema extends BaseSchema | BaseSchemaAsync,
4048
TName extends BrandName

library/src/methods/transform/transform.ts

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ export type SchemaWithTransform<TSchema extends BaseSchema, TOutput> = Omit<
1414
};
1515
};
1616

17+
/**
18+
* Adds a transformation step to a schema, which is executed at the end of
19+
* parsing and can change the output type.
20+
*
21+
* @param schema The schema to be used.
22+
* @param action The transformation action.
23+
* @param pipe A validation pipe.
24+
*
25+
* @returns A transformed schema.
26+
*/
1727
export function transform<TSchema extends BaseSchema, TOutput>(
1828
schema: TSchema,
1929
action: (value: Output<TSchema>) => TOutput,

library/src/methods/transform/transformAsync.ts

+10
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export type SchemaWithTransformAsync<
2424
};
2525
};
2626

27+
/**
28+
* Adds an async transformation step to a schema, which is executed at the end
29+
* of parsing and can change the output type.
30+
*
31+
* @param schema The schema to be used.
32+
* @param action The transformation action.
33+
* @param pipe A validation pipe.
34+
*
35+
* @returns A transformed schema.
36+
*/
2737
export function transformAsync<
2838
TSchema extends BaseSchema | BaseSchemaAsync,
2939
TOutput

library/src/schemas/nullish/nullish.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export type NullishSchema<
3333
* Creates a nullish schema.
3434
*
3535
* @param wrapped The wrapped schema.
36-
* @param default_ The default value.
3736
*
3837
* @returns A nullish schema.
3938
*/

library/src/schemas/union/unionAsync.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type UnionSchemaAsync<
4141
/**
4242
* Creates an async union schema.
4343
*
44-
* @param union The union options.
44+
* @param options The union options.
4545
* @param message The error message.
4646
*
4747
* @returns An async union schema.

library/src/types/pipe.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ export type BaseValidation<TInput = any> = {
4747
/**
4848
* Parses unknown input based on its requirement.
4949
*
50-
* @internal This is an internal API.
51-
*
5250
* @param input The input to be parsed.
5351
*
5452
* @returns The parse result.
53+
*
54+
* @internal
5555
*/
5656
_parse(input: TInput): PipeResult<TInput>;
5757
};
@@ -71,11 +71,11 @@ export type BaseValidationAsync<TInput = any> = {
7171
/**
7272
* Parses unknown input based on its requirement.
7373
*
74-
* @internal This is an internal API.
75-
*
7674
* @param input The input to be parsed.
7775
*
7876
* @returns The parse result.
77+
*
78+
* @internal
7979
*/
8080
_parse(input: TInput): Promise<PipeResult<TInput>>;
8181
};
@@ -91,11 +91,11 @@ export type BaseTransformation<TInput = any> = {
9191
/**
9292
* Parses unknown input based on its requirement.
9393
*
94-
* @internal This is an internal API.
95-
*
9694
* @param input The input to be parsed.
9795
*
9896
* @returns The parse result.
97+
*
98+
* @internal
9999
*/
100100
_parse(input: TInput): PipeResult<TInput>;
101101
};
@@ -111,11 +111,11 @@ export type BaseTransformationAsync<TInput = any> = {
111111
/**
112112
* Parses unknown input based on its requirement.
113113
*
114-
* @internal This is an internal API.
115-
*
116114
* @param input The input to be parsed.
117115
*
118116
* @returns The parse result.
117+
*
118+
* @internal
119119
*/
120120
_parse(input: TInput): Promise<PipeResult<TInput>>;
121121
};

library/src/types/schema.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ export type BaseSchema<TInput = any, TOutput = TInput> = {
4343
/**
4444
* Parses unknown input based on its schema.
4545
*
46-
* @internal This is an internal API.
47-
*
4846
* @param input The input to be parsed.
4947
* @param info The parse info.
5048
*
5149
* @returns The parse result.
50+
*
51+
* @internal
5252
*/
5353
_parse(input: unknown, info?: ParseInfo): _ParseResult<TOutput>;
5454
/**
5555
* Input and output type.
5656
*
57-
* @internal This is an internal API.
57+
* @internal
5858
*/
5959
_types?: { input: TInput; output: TOutput };
6060
};
@@ -70,18 +70,18 @@ export type BaseSchemaAsync<TInput = any, TOutput = TInput> = {
7070
/**
7171
* Parses unknown input based on its schema.
7272
*
73-
* @internal This is an internal API.
74-
*
7573
* @param input The input to be parsed.
7674
* @param info The parse info.
7775
*
7876
* @returns The parse result.
77+
*
78+
* @internal
7979
*/
8080
_parse(input: unknown, info?: ParseInfo): Promise<_ParseResult<TOutput>>;
8181
/**
8282
* Input and output type.
8383
*
84-
* @internal This is an internal API.
84+
* @internal
8585
*/
8686
_types?: { input: TInput; output: TOutput };
8787
};

library/src/utils/getPipeIssues/getPipeIssues.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { getIssues } from '../getIssues/getIssues.ts';
88
* @param validation The validation name.
99
* @param message The error message.
1010
* @param input The input value.
11+
* @param requirement The requirement.
1112
*
1213
* @returns The pipeline result object.
1314
*/

0 commit comments

Comments
 (0)