mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
refactor(backend): fix nestjs-typed linting errors
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
8daffbb11b
commit
a5d8c9cc33
16 changed files with 60 additions and 20 deletions
|
@ -21,6 +21,7 @@ export class NoteUserPermissionEntryDto extends BaseDto {
|
|||
/**
|
||||
* Username of the User this permission applies to
|
||||
*/
|
||||
@Type(() => String)
|
||||
@IsString()
|
||||
@IsLowercase()
|
||||
@ApiProperty()
|
||||
|
@ -40,6 +41,7 @@ export class NoteUserPermissionUpdateDto {
|
|||
* Username of the user this permission should apply to
|
||||
* @example "john.smith"
|
||||
*/
|
||||
@Type(() => String)
|
||||
@IsString()
|
||||
@IsLowercase()
|
||||
@ApiProperty()
|
||||
|
@ -93,6 +95,9 @@ export class NotePermissionsDto {
|
|||
/**
|
||||
* Username of the User this permission applies to
|
||||
*/
|
||||
// nestjs-typed does not detect '| null' types as optional
|
||||
// eslint-disable-next-line @darraghor/nestjs-typed/api-property-matches-property-optionality
|
||||
@Type(() => String)
|
||||
@IsString()
|
||||
@ApiPropertyOptional()
|
||||
@IsOptional()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue