mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: fix typedocs warnings (#4946)
This commit is contained in:
parent
a049bba201
commit
4adaa833ba
3 changed files with 10 additions and 4 deletions
6
.changeset/healthy-ducks-drive.md
Normal file
6
.changeset/healthy-ducks-drive.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@verdaccio/types': patch
|
||||
'@verdaccio/config': patch
|
||||
---
|
||||
|
||||
chore: fix typedocs warnings
|
|
@ -25,7 +25,7 @@ export const defaultNonLoggedUserRoles = [
|
|||
|
||||
/**
|
||||
* Create a RemoteUser object
|
||||
* @return {Object} { name: xx, pluginGroups: [], real_groups: [] }
|
||||
* @return {Object} \{ name: xx, pluginGroups: [], real_groups: [] \}
|
||||
*/
|
||||
export function createRemoteUser(name: string, pluginGroups: string[]): RemoteUser {
|
||||
const isGroupValid: boolean = Array.isArray(pluginGroups);
|
||||
|
@ -42,7 +42,7 @@ export function createRemoteUser(name: string, pluginGroups: string[]): RemoteUs
|
|||
|
||||
/**
|
||||
* Builds an anonymous remote user in case none is logged in.
|
||||
* @return {Object} { name: xx, groups: [], real_groups: [] }
|
||||
* @return {Object} \{ name: xx, groups: [], real_groups: [] \}
|
||||
*/
|
||||
export function createAnonymousRemoteUser(): RemoteUser {
|
||||
return {
|
||||
|
|
|
@ -23,11 +23,11 @@ export interface ITokenActions {
|
|||
/**
|
||||
* This method expect return a Package object
|
||||
* eg:
|
||||
* {
|
||||
* \{
|
||||
* name: string;
|
||||
* time: number;
|
||||
* ... and other props
|
||||
* }
|
||||
* \}
|
||||
*
|
||||
* The `cb` callback object will be executed if:
|
||||
* - it might return object (truly)
|
||||
|
|
Loading…
Reference in a new issue