Skip to content

Commit f8edef8

Browse files
chore: remove duplicated IValidation definition (#1091)
The interface `IValidation` was defined twice in this code. I delete the duplicate, whose lines were to 100% identical to the ones from line 480. Fixes #1095
1 parent be7f57b commit f8edef8

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

API.md

-6
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ deployed.
481481
## interface IValidation <a id="constructs-ivalidation"></a>
482482

483483

484-
Implement this interface in order for the construct to be able to validate itself.
485-
486484
Implement this interface in order for the construct to be able to validate itself.
487485
### Methods
488486

@@ -491,10 +489,6 @@ Implement this interface in order for the construct to be able to validate itsel
491489

492490
Validate the current construct.
493491

494-
This method can be implemented by derived constructs in order to perform
495-
validation logic. It is called on all constructs before synthesis.
496-
Validate the current construct.
497-
498492
This method can be implemented by derived constructs in order to perform
499493
validation logic. It is called on all constructs before synthesis.
500494

src/construct.ts

-15
Original file line numberDiff line numberDiff line change
@@ -506,21 +506,6 @@ export enum ConstructOrder {
506506
POSTORDER
507507
}
508508

509-
/**
510-
* Implement this interface in order for the construct to be able to validate itself.
511-
*/
512-
export interface IValidation {
513-
/**
514-
* Validate the current construct.
515-
*
516-
* This method can be implemented by derived constructs in order to perform
517-
* validation logic. It is called on all constructs before synthesis.
518-
*
519-
* @returns An array of validation error messages, or an empty array if there the construct is valid.
520-
*/
521-
validate(): string[];
522-
}
523-
524509
const PATH_SEP_REGEX = new RegExp(`${Node.PATH_SEP}`, 'g');
525510

526511
/**

0 commit comments

Comments
 (0)