File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable @seedcompany/no-unused-vars */
2
2
3
- import { FnLike } from '@seedcompany/common' ;
4
-
5
- type Decorator =
6
- | ClassDecorator
7
- | PropertyDecorator
8
- | MethodDecorator
9
- | ParameterDecorator
10
- | FnLike ;
11
-
12
3
/**
13
4
* Mark the decorator is disabled and give a reason why.
14
5
* Allows to keep code versioned without being enabled
15
6
* without all wall of commented out text that can get outdated.
16
7
*/
17
8
export const Disabled =
18
- ( why ?: string ) =>
19
- < T extends Decorator > ( decorator : T ) : T =>
20
- // @ts -expect-error yeah all decorators can return void
21
- ( ) => {
9
+ ( why : string , ...anything : unknown [ ] ) =>
10
+ ( ...decoratorArgs : unknown [ ] ) => {
22
11
// noop
23
12
} ;
Original file line number Diff line number Diff line change @@ -197,11 +197,12 @@ class Project extends Interfaces {
197
197
* Optimization for {@link ProjectResolver.engagements}.
198
198
* This doesn't account for changesets or item filters.
199
199
*/
200
- @Disabled ( `
201
- I'm not convinced this wont have unintended consequences.
202
- it is still handled with the workflow condition currently and deletes are
203
- restricted, so this is a super edge case effectively.
204
- ` ) (
200
+ @Disabled (
201
+ `
202
+ I'm not convinced this wont have unintended consequences.
203
+ it is still handled with the workflow condition currently and deletes are
204
+ restricted, so this is a super edge case effectively.
205
+ ` ,
205
206
RequiredWhenNotInDev ( {
206
207
field : 'engagements' ,
207
208
isMissing : ( project ) => project . engagementTotal === 0 ,
You can’t perform that action at this time.
0 commit comments