Skip to content

Commit 150d1ec

Browse files
committed
Enabled checkJs
1 parent fe036bd commit 150d1ec

7 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- run: npx prisma generate
2525
- run: npx prisma migrate dev
2626
- run: npm test
27+
- run: npm build
2728

2829
# Bun
2930
- uses: oven-sh/setup-bun@v2

src/knex/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { deprecate } from 'node:util';
33
import { fromSql, toSql } from '../index.js';
44
import { vectorType, halfvecType, sparsevecType } from '../utils.js';
55

6+
// @ts-ignore
67
knex.SchemaBuilder.extend('enableExtension', deprecate(function (name) {
78
return this.raw('CREATE EXTENSION IF NOT EXISTS ??', [name]);
89
}, 'enableExtension() is deprecated. Use createExtensionIfNotExists() instead.'));

src/mikro-orm/sparsevec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class SparsevecType extends Type {
99
return sparsevecToSql(value);
1010
}
1111

12+
// @ts-ignore
1213
convertToJSValue(value, platform) {
1314
if (value === null) {
1415
return null;

src/sequelize/halfvec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-nocheck
2+
13
import { inherits } from 'node:util';
24
import { Sequelize, DataTypes, Utils } from 'sequelize';
35
import { halfvecType, halfvecToSql, halfvecFromSql } from '../utils.js';

src/sequelize/sparsevec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-nocheck
2+
13
import { inherits } from 'node:util';
24
import { Sequelize, DataTypes, Utils } from 'sequelize';
35
import { sparsevecType, sparsevecToSql, sparsevecFromSql } from '../utils.js';

src/sequelize/vector.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-nocheck
2+
13
import { inherits } from 'node:util';
24
import { Sequelize, DataTypes, Utils } from 'sequelize';
35
import { vectorType, vectorToSql, vectorFromSql } from '../utils.js';

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"include": ["src/**/*"],
33
"compilerOptions": {
44
"allowJs": true,
5+
"checkJs": true,
56
"declaration": true,
67
"emitDeclarationOnly": true,
78
"rootDir": "src",
@@ -10,6 +11,7 @@
1011
"esModuleInterop": true,
1112
"target": "es6",
1213
"module": "nodenext",
13-
"moduleResolution": "nodenext"
14+
"moduleResolution": "nodenext",
15+
"noImplicitAny": false
1416
}
1517
}

0 commit comments

Comments
 (0)