mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Client and server now have their own tsconfig so that the transpilation is only done on the part that is being modified. It also allows faster transpilation since tests are now excluded from tsconfig. They are compiled by ts-node during unit tests execution.
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
|
|
import BluebirdPromise = require("bluebird");
|
|
import { IMongoConnectorFactory } from "./IMongoConnectorFactory";
|
|
import { IMongoConnector } from "./IMongoConnector";
|
|
import { MongoConnector } from "./MongoConnector";
|
|
import MongoDB = require("mongodb");
|
|
|
|
export class MongoConnectorFactory implements IMongoConnectorFactory {
|
|
create(url: string): IMongoConnector {
|
|
return new MongoConnector(url);
|
|
}
|
|
} |