Skip to content

Commit d422b8f

Browse files
committed
es2015
1 parent c681dc0 commit d422b8f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src/collections.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export function buildCollections(collections: any): any {}

src/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
export function buildQuery(query: any): any {}
1+
import {buildCollections} from './collections'
2+
3+
export interface query {
4+
collections: any,
5+
terms: any,
6+
filters: any,
7+
}
8+
9+
export function buildQuery(query: query): any {
10+
const collections: any = buildCollections(query.collections)
11+
12+
return collections
13+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"outDir": "./built",
44
"allowJs": true,
5-
"target": "es5",
5+
"target": "es2015",
66
"declaration": true,
77
"emitDeclarationOnly": true
88
},

0 commit comments

Comments
 (0)