fix(core): update

This commit is contained in:
2021-12-20 17:06:42 +01:00
parent 9d12338630
commit e5a02a014a
2 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,14 @@ export interface ISmarts3ContructorOptions {
}
export class Smarts3 {
// STATIC
public static async createAndStart(optionsArg: ConstructorParameters<typeof Smarts3>[0]) {
const smartS3Instance = new Smarts3(optionsArg);
await smartS3Instance.start();
return smartS3Instance;
}
// INSTANCE
public options: ISmarts3ContructorOptions;
public dataForClient = {
s3AccessKey: 'S3RVER',