File tree 5 files changed +7
-12
lines changed
5 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
- import IDatabase from '../interfaces/IDatabase' ;
1
+ import { IDatabase } from '../interfaces/IDatabase' ;
2
2
3
3
export class Database implements IDatabase {
4
4
private driver : IDatabase ;
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ import * as fs from 'fs';
2
2
import * as glob from 'glob' ;
3
3
import * as path from 'path' ;
4
4
5
- import IDatabase from '../interfaces/IDatabase' ;
6
-
5
+ import { IDatabase } from '../interfaces/IDatabase' ;
7
6
import { IExtractor } from '../interfaces/IExtractor' ;
8
7
9
8
type fs = typeof fs ;
Original file line number Diff line number Diff line change 1
1
import { IContent } from './IContent' ;
2
2
3
- interface IDatabase {
3
+ export interface IDatabase {
4
4
getAll : ( table : string ) => IContent [ ] ;
5
5
getById : ( id : string | number , table : string ) => IContent ;
6
6
}
7
-
8
- export default IDatabase ;
Original file line number Diff line number Diff line change 1
- import IDatabase from './IDatabase' ;
1
+ import { IDatabase } from './IDatabase' ;
2
2
3
- interface IModel extends IDatabase {
3
+ export interface IModel extends IDatabase {
4
4
table : string ;
5
5
}
6
-
7
- export default IModel ;
Original file line number Diff line number Diff line change 1
1
import { IContent } from '../interfaces/IContent' ;
2
- import IDatabase from '../interfaces/IDatabase' ;
3
- import IModel from '../interfaces/IModel' ;
2
+ import { IDatabase } from '../interfaces/IDatabase' ;
3
+ import { IModel } from '../interfaces/IModel' ;
4
4
5
5
export interface IArticle extends IContent {
6
6
description ?: string ;
You can’t perform that action at this time.
0 commit comments