fix: extract VRF to a plugin #248

This commit is contained in:
ppedziwiatr
2023-04-25 10:52:36 +02:00
committed by just_ppe
parent 244a5d6059
commit e22d949485
13 changed files with 126 additions and 100 deletions

View File

@@ -174,6 +174,14 @@ export class Warp {
return this.plugins.get(type) as WarpPlugin<P, Q>;
}
maybeLoadPlugin<P, Q>(type: WarpPluginType): WarpPlugin<P, Q> | null {
if (!this.hasPlugin(type)) {
return null;
}
return this.plugins.get(type) as WarpPlugin<P, Q>;
}
// Close cache connection
async close(): Promise<void> {
return Promise.all([