Skip to content

Commit c3ed917

Browse files
authored
Merge pull request #66 from radify/develop
Next release
2 parents f631edb + bfa3140 commit c3ed917

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

integration-test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ var expected = {
136136
type: 'string'
137137
},
138138
completed: {
139-
type: 'number'
139+
type: 'string',
140+
pattern: '^\\d+$'
140141
}
141142
},
142143

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"url": "https://github.com/radify/collimator.git"
77
},
88
"main": "lib/collimator.js",
9+
"types": "lib/collimator.d.ts",
910
"author": "Radify",
1011
"license": "BSD-3-Clause",
1112
"devDependencies": {

src/inspectors/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export function properties(columns: Column[]): SchemaProperties {
9696
*/
9797
export function property(column: Column): SchemaProperties {
9898
const TYPES:any = {
99-
bigserial: {type: 'number'},
99+
bigserial: {type: 'string', pattern: '^\\d+$'},
100100
boolean: {type: 'boolean'},
101101
character: {type: 'string'},
102-
bigint: {type: 'number'},
102+
bigint: {type: 'string', pattern: '^\\d+$'},
103103
integer: {type: 'number'},
104104
json: {type: 'object'},
105105
jsonb: {type: 'object'},

0 commit comments

Comments
 (0)