orchid-orm 1.23.7 → 1.23.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -252,14 +252,15 @@ type OrchidORM<T extends TableClasses = TableClasses> = {
252
252
  $from<Arg extends FromArg<Query>>(arg: Arg, options?: FromArgOptions): FromResult<Query, Arg>;
253
253
  $close(): Promise<void>;
254
254
  };
255
- declare const orchidORM: <T extends TableClasses>({ log, logger, autoPreparedStatements, noPrimaryKey, ...options }: (Omit<AdapterOptions, "log"> | {
255
+ type OrchidOrmArg = true | null extends true ? 'Set strict: true to tsconfig' : ({
256
256
  db: Query;
257
257
  } | {
258
258
  adapter: Adapter;
259
- }) & QueryLogOptions & {
260
- autoPreparedStatements?: boolean | undefined;
261
- noPrimaryKey?: NoPrimaryKeyOption | undefined;
262
- }, tables: T) => OrchidORM<T>;
259
+ } | Omit<AdapterOptions, 'log'>) & QueryLogOptions & {
260
+ autoPreparedStatements?: boolean;
261
+ noPrimaryKey?: NoPrimaryKeyOption;
262
+ };
263
+ declare const orchidORM: <T extends TableClasses>({ log, logger, autoPreparedStatements, noPrimaryKey, ...options }: OrchidOrmArg, tables: T) => OrchidORM<T>;
263
264
 
264
265
  interface HasAndBelongsToMany extends RelationThunkBase {
265
266
  type: 'hasAndBelongsToMany';