Skip to content

Commit

Permalink
A few steps closer to being able to run with --experimental-strip-types
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Feb 11, 2025
1 parent 8ed65c4 commit 5471680
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Knex, default as knex } from 'knex';
import * as path from 'node:path';
import { fileURLToPath } from 'node:url';
import './env.js';
import './env.ts';

let settings: Knex.Config | null = null;
const db: Knex = knex(getSettings());
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
export { default as mainMw } from './main-mw.ts';
export { load as init } from './server-settings.ts';

import './db-types';
import './db-types.ts';
2 changes: 1 addition & 1 deletion src/oauth2/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { InvalidGrant, InvalidRequest, UnauthorizedClient } from './errors.ts';
import { CodeChallengeMethod, OAuth2Code, OAuth2Token } from './types.ts';
import { generateSecretToken } from '../crypto.ts';
import { generateJWTAccessToken, generateJWTIDToken } from './jwt.ts';
import { Oauth2TokensRecord, Oauth2CodesRecord } from 'knex/types/tables.ts';
import type { Oauth2TokensRecord, Oauth2CodesRecord } from 'knex/types/tables.ts';
import { App, User, GrantType, AppClient } from '../types.ts';
import * as userAppPermissionsService from '../user-app-permissions/service.ts';
import * as principalIdentityService from '../principal-identity/service.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/privilege/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Context } from '@curveball/core';
import db, { query } from '../database.ts';
import { Principal } from '../types.ts';
import { Privilege, PrivilegeMap, PrivilegeEntry, InternalPrivilege } from './types.ts';
import { UserPrivilegesRecord } from 'knex/types/tables.ts';
import type { UserPrivilegesRecord } from 'knex/types/tables.ts';
import { PrincipalService } from '../principal/service.ts';
import { Forbidden } from '@curveball/http-errors';

Expand Down

0 comments on commit 5471680

Please sign in to comment.