Skip to content

Commit a9e1246

Browse files
refactor: set authCache as optional member
1 parent 23fcd47 commit a9e1246

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/gitlab.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ const BUILTIN_ACCESS_LEVEL_ANONYMOUS = ['$anonymous', '$all'];
3939
const DEFAULT_ALLOW_ACCESS_LEVEL = ['$all'];
4040

4141
export interface VerdaccioGitLabPlugin extends IPluginAuth<VerdaccioGitlabConfig> {
42-
authCache: AuthCache;
42+
authCache?: AuthCache;
4343
}
4444

4545
export default class VerdaccioGitLab implements VerdaccioGitLabPlugin {
4646
options: PluginOptions<VerdaccioGitlabConfig>;
4747
config: VerdaccioGitlabConfig;
48-
// @ts-ignore
49-
authCache: AuthCache;
48+
authCache?: AuthCache;
5049
logger: Logger;
5150
publishLevel: VerdaccioGitlabAccessLevel;
5251

0 commit comments

Comments
 (0)