@terreno/api 0.26.0 → 0.27.0

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.
Files changed (96) hide show
  1. package/dist/__tests__/openApiCompat.test.js +8 -2
  2. package/dist/actions.openApi.test.js +1 -0
  3. package/dist/actions.test.js +1 -0
  4. package/dist/api.arrayOperations.test.js +1 -0
  5. package/dist/api.coverage.test.d.ts +1 -0
  6. package/dist/api.coverage.test.js +191 -0
  7. package/dist/api.errorPaths.test.d.ts +1 -0
  8. package/dist/api.errorPaths.test.js +278 -0
  9. package/dist/api.errors.test.js +1 -0
  10. package/dist/api.hooks.test.js +1 -0
  11. package/dist/api.js +160 -167
  12. package/dist/api.query.test.js +1 -0
  13. package/dist/api.test.js +1 -0
  14. package/dist/auth.js +1 -0
  15. package/dist/auth.test.js +122 -0
  16. package/dist/betterAuthSetup.js +1 -0
  17. package/dist/betterAuthSetup.test.js +1 -0
  18. package/dist/configuration.test.js +1 -0
  19. package/dist/configurationApp.js +1 -0
  20. package/dist/configurationPlugin.test.js +80 -0
  21. package/dist/consentApp.test.js +1 -0
  22. package/dist/docLoader.js +1 -3
  23. package/dist/envConfigurationPlugin.js +1 -0
  24. package/dist/example.js +3 -2
  25. package/dist/expressServer.test.js +1 -0
  26. package/dist/githubAuth.js +2 -0
  27. package/dist/githubAuth.test.js +1 -0
  28. package/dist/logger.test.js +107 -0
  29. package/dist/openApi.test.js +1 -0
  30. package/dist/openApiBuilder.js +2 -1
  31. package/dist/openApiBuilder.test.js +3 -2
  32. package/dist/openApiValidator.js +1 -0
  33. package/dist/openApiValidator.test.js +41 -0
  34. package/dist/permissions.middleware.test.js +1 -0
  35. package/dist/permissions.test.js +1 -0
  36. package/dist/plugins.js +8 -0
  37. package/dist/plugins.test.js +1 -0
  38. package/dist/populate.js +4 -2
  39. package/dist/populate.test.js +1 -0
  40. package/dist/realtime/realtime.test.js +13 -3
  41. package/dist/realtime/types.d.ts +1 -1
  42. package/dist/requestContext.test.js +28 -0
  43. package/dist/terrenoApp.js +1 -0
  44. package/dist/tests/createTestData.js +11 -6
  45. package/dist/tests/models.js +1 -0
  46. package/dist/vendor/wesleytodd-openapi/lib/generate-doc.js +3 -1
  47. package/package.json +7 -7
  48. package/src/__tests__/openApiCompat.test.ts +8 -2
  49. package/src/actions.openApi.test.ts +1 -0
  50. package/src/actions.test.ts +1 -0
  51. package/src/api.arrayOperations.test.ts +1 -0
  52. package/src/api.coverage.test.ts +121 -0
  53. package/src/api.errorPaths.test.ts +171 -0
  54. package/src/api.errors.test.ts +1 -0
  55. package/src/api.hooks.test.ts +1 -0
  56. package/src/api.query.test.ts +1 -0
  57. package/src/api.test.ts +1 -0
  58. package/src/api.ts +13 -9
  59. package/src/auth.test.ts +91 -2
  60. package/src/auth.ts +6 -0
  61. package/src/betterAuthSetup.test.ts +1 -0
  62. package/src/betterAuthSetup.ts +3 -0
  63. package/src/configuration.test.ts +1 -0
  64. package/src/configurationApp.ts +2 -0
  65. package/src/configurationPlugin.test.ts +46 -1
  66. package/src/consentApp.test.ts +1 -0
  67. package/src/docLoader.ts +1 -2
  68. package/src/envConfigurationPlugin.ts +2 -0
  69. package/src/example.ts +3 -2
  70. package/src/expressServer.test.ts +1 -0
  71. package/src/expressServer.ts +4 -2
  72. package/src/githubAuth.test.ts +1 -0
  73. package/src/githubAuth.ts +2 -0
  74. package/src/logger.test.ts +78 -0
  75. package/src/openApi.test.ts +1 -0
  76. package/src/openApiBuilder.test.ts +7 -6
  77. package/src/openApiBuilder.ts +2 -1
  78. package/src/openApiValidator.test.ts +64 -0
  79. package/src/openApiValidator.ts +1 -0
  80. package/src/permissions.middleware.test.ts +1 -0
  81. package/src/permissions.test.ts +1 -0
  82. package/src/plugins.test.ts +1 -0
  83. package/src/plugins.ts +9 -0
  84. package/src/populate.test.ts +1 -0
  85. package/src/populate.ts +4 -2
  86. package/src/realtime/realtime.test.ts +13 -3
  87. package/src/realtime/realtimeApp.ts +1 -0
  88. package/src/realtime/registry.ts +1 -0
  89. package/src/realtime/types.ts +1 -2
  90. package/src/requestContext.test.ts +32 -0
  91. package/src/terrenoApp.ts +1 -0
  92. package/src/tests/createTestData.ts +11 -6
  93. package/src/tests/models.ts +1 -0
  94. package/src/vendor/wesleytodd-openapi/lib/generate-doc.js +4 -1
  95. package/tsconfig.json +3 -3
  96. /package/{types.d.ts → src/types.d.ts} +0 -0
package/src/plugins.ts CHANGED
@@ -16,6 +16,7 @@ export interface BaseUser {
16
16
  email: string;
17
17
  }
18
18
 
19
+ // noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
19
20
  // biome-ignore lint/suspicious/noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
20
21
  export const baseUserPlugin = (schema: Schema<any, any, any, any>): void => {
21
22
  schema.add({
@@ -30,6 +31,7 @@ export interface IsDeleted {
30
31
  deleted: boolean;
31
32
  }
32
33
 
34
+ // noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
33
35
  // biome-ignore lint/suspicious/noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
34
36
  export const isDeletedPlugin = (schema: Schema<any, any, any, any>, defaultValue = false): void => {
35
37
  schema.add({
@@ -42,6 +44,7 @@ export const isDeletedPlugin = (schema: Schema<any, any, any, any>, defaultValue
42
44
  type: Boolean,
43
45
  },
44
46
  });
47
+ // noExplicitAny: Query<any, any> must be loose to accept arbitrary consumer queries
45
48
  // biome-ignore lint/suspicious/noExplicitAny: Query<any, any> must be loose to accept arbitrary consumer queries
46
49
  const applyDeleteFilter = (q: Query<any, any>): void => {
47
50
  const query = q.getQuery();
@@ -58,6 +61,7 @@ export const isDeletedPlugin = (schema: Schema<any, any, any, any>, defaultValue
58
61
  };
59
62
 
60
63
  export const isDisabledPlugin = (
64
+ // noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
61
65
  // biome-ignore lint/suspicious/noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
62
66
  schema: Schema<any, any, any, any>,
63
67
  defaultValue = false
@@ -77,6 +81,7 @@ export interface CreatedDeleted {
77
81
  created: {type: Date; required: true};
78
82
  }
79
83
 
84
+ // noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
80
85
  // biome-ignore lint/suspicious/noExplicitAny: Schema generics must be loose to accept arbitrary consumer schemas
81
86
  export const createdUpdatedPlugin = (schema: Schema<any, any, any, any>): void => {
82
87
  schema.add({
@@ -209,6 +214,7 @@ export const findExactlyOne = <T>(schema: Schema<T>): void => {
209
214
  * match the conditions to prevent ambiguous updates.
210
215
  * @param schema Mongoose Schema
211
216
  */
217
+ // noExplicitAny: Schema generics with unknown collide with mongoose's loose this-binding on schema.statics
212
218
  // biome-ignore lint/suspicious/noExplicitAny: Schema generics with unknown collide with mongoose's loose this-binding on schema.statics
213
219
  export const upsertPlugin = <T>(schema: Schema<any, any, any, any>): void => {
214
220
  schema.statics.upsert = async function (
@@ -269,6 +275,7 @@ export class DateOnly extends SchemaType {
269
275
  }
270
276
 
271
277
  $conditionalHandlers = {
278
+ // noExplicitAny: $conditionalHandlers is not exposed on SchemaType's prototype in Mongoose's public type definitions
272
279
  // biome-ignore lint/suspicious/noExplicitAny: $conditionalHandlers is not exposed on SchemaType's prototype in Mongoose's public type definitions
273
280
  ...(SchemaType as any).prototype.$conditionalHandlers,
274
281
  $gt: this.handleSingle,
@@ -281,6 +288,7 @@ export class DateOnly extends SchemaType {
281
288
  // When using $gt, $gte, $lt, $lte, etc, we need to cast the value to a Date
282
289
  castForQuery($conditional: string | undefined, val: unknown, context: unknown): Date | undefined {
283
290
  if ($conditional == null) {
291
+ // noExplicitAny: applySetters is an internal Mongoose SchemaType method not in public type definitions
284
292
  // biome-ignore lint/suspicious/noExplicitAny: applySetters is an internal Mongoose SchemaType method not in public type definitions
285
293
  return (this as any).applySetters(val, context);
286
294
  }
@@ -341,5 +349,6 @@ export class DateOnly extends SchemaType {
341
349
  }
342
350
 
343
351
  // Register DateOnly with Mongoose's Schema.Types
352
+ // noExplicitAny: DateOnly is a custom SchemaType not declared in Mongoose's Schema.Types interface
344
353
  // biome-ignore lint/suspicious/noExplicitAny: DateOnly is a custom SchemaType not declared in Mongoose's Schema.Types interface
345
354
  (mongoose.Schema.Types as any).DateOnly = DateOnly;
@@ -1,3 +1,4 @@
1
+ // noExplicitAny: test mock typing
1
2
  // biome-ignore-all lint/suspicious/noExplicitAny: test mock typing
2
3
  import {beforeEach, describe, expect, it} from "bun:test";
3
4
  import mongoose, {type Document, type HydratedDocument, Schema} from "mongoose";
package/src/populate.ts CHANGED
@@ -140,7 +140,8 @@ export const fixMixedFields = (schema: Schema | null, properties: Record<string,
140
140
  };
141
141
 
142
142
  export const getOpenApiSpecForModel = (
143
- // biome-ignore lint/suspicious/noExplicitAny: noExplicitAny: Mongoose Model param uses deep internal APIs (schema.path().options.ref, schema.virtuals, schema.childSchemas, db.model) that are not exposed in public type definitions
143
+ // noExplicitAny: Mongoose Model param uses deep internal APIs (schema.path().options.ref, schema.virtuals, schema.childSchemas, db.model) that are not exposed in public type definitions
144
+ // biome-ignore lint/suspicious/noExplicitAny: Mongoose Model param uses deep internal APIs (schema.path().options.ref, schema.virtuals, schema.childSchemas, db.model) that are not exposed in public type definitions
144
145
  model: any,
145
146
  {
146
147
  populatePaths,
@@ -261,7 +262,8 @@ export const unpopulate = <T>(doc: Document<T>, path: string): Document<T> => {
261
262
  const pathParts = path.split(".");
262
263
 
263
264
  // Recursive because we need to support nested paths.
264
- // biome-ignore lint/suspicious/noExplicitAny: noExplicitAny: recursive document traversal uses bracket-notation indexing on arbitrary nested document shapes that Mongoose Document types do not expose
265
+ // noExplicitAny: recursive document traversal uses bracket-notation indexing on arbitrary nested document shapes that Mongoose Document types do not expose
266
+ // biome-ignore lint/suspicious/noExplicitAny: recursive document traversal uses bracket-notation indexing on arbitrary nested document shapes that Mongoose Document types do not expose
265
267
  const recursiveUnpopulate = (current: any, parts: string[]): any => {
266
268
  const part = parts[0];
267
269
 
@@ -1,3 +1,4 @@
1
+ // noExplicitAny: test mocks use dynamic shapes for registry entries and documents
1
2
  // biome-ignore-all lint/suspicious/noExplicitAny: test mocks use dynamic shapes for registry entries and documents
2
3
  /**
3
4
  * Tests for the realtime module's pure functions and classes:
@@ -934,7 +935,10 @@ describe("installRealtimeSocketHandlers", () => {
934
935
  // queryId emitted back must encode the injected ownerId
935
936
  const subscribed = socket.emitted.find((e) => e.event === "query:subscribed");
936
937
  expect(subscribed).toBeDefined();
937
- expect((subscribed?.payload as any).queryId).toContain("user1");
938
+ if (!subscribed) {
939
+ throw new Error("Expected a query subscription event");
940
+ }
941
+ expect((subscribed.payload as any).queryId).toContain("user1");
938
942
  });
939
943
 
940
944
  it("does NOT inject ownerId for admins (admins see all)", async () => {
@@ -947,7 +951,10 @@ describe("installRealtimeSocketHandlers", () => {
947
951
  });
948
952
  const subscribed = socket.emitted.find((e) => e.event === "query:subscribed");
949
953
  expect(subscribed).toBeDefined();
950
- expect((subscribed?.payload as any).queryId).not.toContain("admin1");
954
+ if (!subscribed) {
955
+ throw new Error("Expected a query subscription event");
956
+ }
957
+ expect((subscribed.payload as any).queryId).not.toContain("admin1");
951
958
  });
952
959
 
953
960
  it("ignores subscriptions when user has no id (anonymous) for owner strategy", async () => {
@@ -1135,7 +1142,10 @@ describe("installRealtimeSocketHandlers", () => {
1135
1142
  await socket.trigger("subscribe:query", {collection: "broadcasts", query: {priority: 1}});
1136
1143
  const subscribed = socket.emitted.find((e) => e.event === "query:subscribed");
1137
1144
  expect(subscribed).toBeDefined();
1138
- const queryId = (subscribed?.payload as {queryId: string}).queryId;
1145
+ if (!subscribed) {
1146
+ throw new Error("Expected a query subscription event");
1147
+ }
1148
+ const queryId = (subscribed.payload as {queryId: string}).queryId;
1139
1149
  expect(socket.rooms.has(`query:${queryId}`)).toBe(true);
1140
1150
  expect(getQuerySubscriptionsForCollection("broadcasts").length).toBe(1);
1141
1151
  await socket.trigger("unsubscribe:query", {queryId});
@@ -1,3 +1,4 @@
1
+ // noExplicitAny: Socket.io handler signatures require dynamic args
1
2
  // biome-ignore-all lint/suspicious/noExplicitAny: Socket.io handler signatures require dynamic args
2
3
  import type http from "node:http";
3
4
  import * as Sentry from "@sentry/bun";
@@ -1,3 +1,4 @@
1
+ // noExplicitAny: model router options are generic across all models
1
2
  // biome-ignore-all lint/suspicious/noExplicitAny: model router options are generic across all models
2
3
  import type {ModelRouterOptions} from "../api";
3
4
  import type {RealtimeConfig} from "./types";
@@ -36,8 +36,7 @@ export interface RealtimeEvent {
36
36
  /** Document ID */
37
37
  id: string;
38
38
  /** Serialized document data (omitted for hard deletes) */
39
- // biome-ignore lint/suspicious/noExplicitAny: noExplicitAny: event data is a serialized document whose shape varies by model; consumers must narrow to their specific type
40
- data?: any;
39
+ data?: unknown;
41
40
  /** Fields that were updated (for update events from change streams) */
42
41
  updatedFields?: string[];
43
42
  /** Epoch milliseconds when the event was generated */
@@ -289,6 +289,38 @@ describe("request context job propagation", () => {
289
289
  expect(ctx.traceId).toBeUndefined();
290
290
  });
291
291
 
292
+ it("returns undefined trace when google cloud trace context has empty trace id", () => {
293
+ const ctx = getRequestContextFromAttributes({
294
+ "x-cloud-trace-context": "/1;o=1",
295
+ "x-request-id": "r7",
296
+ });
297
+ expect(ctx.traceId).toBeUndefined();
298
+ expect(ctx.spanId).toBeUndefined();
299
+ expect(ctx.requestId).toBe("r7");
300
+ });
301
+
302
+ it("reads the first value when a request header arrives as an array", () => {
303
+ const headers: Record<string, string[] | string | undefined> = {
304
+ "x-cloud-trace-context": ["arrtrace/7;o=1", "ignored/9;o=0"],
305
+ };
306
+ const req = {
307
+ header: (name: string): string[] | string | undefined => headers[name.toLowerCase()],
308
+ user: undefined,
309
+ } as unknown as express.Request;
310
+ const res = {
311
+ setHeader: (): void => {},
312
+ } as unknown as express.Response;
313
+
314
+ let captured: {spanId?: string; traceId?: string} | undefined;
315
+ requestContextMiddleware(req, res, () => {
316
+ const ctx = getCurrentRequestContext();
317
+ captured = {spanId: ctx?.spanId, traceId: ctx?.traceId};
318
+ });
319
+
320
+ expect(captured?.traceId).toBe("arrtrace");
321
+ expect(captured?.spanId).toBe("7");
322
+ });
323
+
292
324
  it("adds job id to logger context", () => {
293
325
  let output = "";
294
326
  const stream = new Writable({
package/src/terrenoApp.ts CHANGED
@@ -228,6 +228,7 @@ export class TerrenoApp {
228
228
  * ```
229
229
  */
230
230
  configure(
231
+ // noExplicitAny: Model<any> required for invariance — consumers pass arbitrary configuration models
231
232
  // biome-ignore lint/suspicious/noExplicitAny: Model<any> required for invariance — consumers pass arbitrary configuration models
232
233
  model: import("mongoose").Model<any>,
233
234
  options?: Omit<ConfigurationAppOptions, "model">
@@ -1,6 +1,8 @@
1
+ import {DateTime} from "luxon";
1
2
  import type {HydratedDocument} from "mongoose";
2
3
  import type {PassportLocalMongooseDocument} from "passport-local-mongoose";
3
4
 
5
+ import {APIError} from "../errors";
4
6
  import {logger} from "../logger";
5
7
  import {FoodModel, RequiredModel, type User, UserModel} from "./models";
6
8
  import type {CachedTestData, TestData, TestFoods, TestRequired, TestUsers} from "./types";
@@ -41,12 +43,12 @@ export const createStandardFoods = async (users: TestUsers): Promise<TestFoods>
41
43
  FoodModel.create({
42
44
  calories: 1,
43
45
  categories: [{name: "Vegetables", show: true}],
44
- created: new Date("2021-12-03T00:00:20.000Z"),
46
+ created: DateTime.fromISO("2021-12-03T00:00:20.000Z").toJSDate(),
45
47
  eatenBy: [admin._id],
46
48
  expiration: "2026-12-31",
47
49
  hidden: false,
48
50
  lastEatenWith: {
49
- dressing: new Date("2021-12-03T19:00:30.000Z"),
51
+ dressing: DateTime.fromISO("2021-12-03T19:00:30.000Z").toJSDate(),
50
52
  },
51
53
  likesIds: [
52
54
  {likes: true, userId: admin._id},
@@ -63,7 +65,7 @@ export const createStandardFoods = async (users: TestUsers): Promise<TestFoods>
63
65
  }),
64
66
  FoodModel.create({
65
67
  calories: 100,
66
- created: new Date("2021-12-03T00:00:30.000Z"),
68
+ created: DateTime.fromISO("2021-12-03T00:00:30.000Z").toJSDate(),
67
69
  expiration: "2026-12-31",
68
70
  hidden: true,
69
71
  likesIds: [{likes: true, userId: admin._id}],
@@ -74,7 +76,7 @@ export const createStandardFoods = async (users: TestUsers): Promise<TestFoods>
74
76
  }),
75
77
  FoodModel.create({
76
78
  calories: 100,
77
- created: new Date("2021-12-03T00:00:00.000Z"),
79
+ created: DateTime.fromISO("2021-12-03T00:00:00.000Z").toJSDate(),
78
80
  eatenBy: [admin._id, notAdmin._id],
79
81
  expiration: "2026-12-31",
80
82
  hidden: false,
@@ -86,7 +88,7 @@ export const createStandardFoods = async (users: TestUsers): Promise<TestFoods>
86
88
  }),
87
89
  FoodModel.create({
88
90
  calories: 800,
89
- created: new Date("2022-01-01T00:00:00.000Z"),
91
+ created: DateTime.fromISO("2022-01-01T00:00:00.000Z").toJSDate(),
90
92
  expiration: "2026-12-31",
91
93
  hidden: false,
92
94
  likesIds: [{likes: true, userId: adminOther._id}],
@@ -165,7 +167,10 @@ export const loadTestDataFromDocuments = async (cached: CachedTestData): Promise
165
167
  !sample ||
166
168
  !withAbout
167
169
  ) {
168
- throw new Error("[createTestData] Cached test data references missing documents");
170
+ throw new APIError({
171
+ status: 500,
172
+ title: "[createTestData] Cached test data references missing documents",
173
+ });
169
174
  }
170
175
 
171
176
  return {
@@ -126,6 +126,7 @@ const foodSchema = new Schema<Food>(
126
126
  type: Schema.Types.ObjectId,
127
127
  },
128
128
  ],
129
+ // noExplicitAny: DateOnly is a custom SchemaType not recognized by Mongoose's built-in type definitions
129
130
  // biome-ignore lint/suspicious/noExplicitAny: DateOnly is a custom SchemaType not recognized by Mongoose's built-in type definitions
130
131
  expiration: {description: "Expiration date of the food", type: DateOnly as any},
131
132
  hidden: {
@@ -68,7 +68,7 @@ module.exports = function generateDocument (baseDocument, router, basePath) {
68
68
 
69
69
  operation.parameters = params.filter((p) => typeof p.name === 'string' && p.name)
70
70
  try {
71
- path = pathToRegexp.compile(path.replace(/\*|\(\*\)/g, '(.*)'))(keys, { encode: (value) => value })
71
+ path = pathToRegexp.compile(path.replace(/\*|\(\*\)/g, '(.*)'), { encode: (value) => value })(keys)
72
72
  } catch (_e) {
73
73
  // Express 5 stores path params in matchers instead of layer.keys, so keys
74
74
  // may be incomplete. Fall back to simple regex replacement of :param → {param}.
@@ -76,6 +76,9 @@ module.exports = function generateDocument (baseDocument, router, basePath) {
76
76
  }
77
77
  }
78
78
 
79
+ // Normalize any percent-encoded path parameters to OpenAPI syntax.
80
+ path = path.replace(/%7B/gi, '{').replace(/%7D/gi, '}')
81
+
79
82
  doc.paths[path] = doc.paths[path] || {}
80
83
  doc.paths[path][layer.method] = operation
81
84
  setSchema(layer.handle, operation)
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  // "lib": [], /* Specify library files to be included in the compilation. */
4
4
  "allowJs": true /* Allow javascript files to be compiled. */,
5
5
  "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
6
- "baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
7
6
  "declaration": true /* Generates corresponding '.d.ts' file. */,
8
7
  "downlevelIteration": true,
9
8
  "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
@@ -26,6 +25,7 @@
26
25
  /* Module Resolution Options */
27
26
  "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
28
27
  // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
28
+ "rootDir": "./src",
29
29
  // "removeComments": true, /* Do not emit comments to output. */
30
30
  "noEmit": false /* Do not emit outputs. */,
31
31
  "noImplicitAny": false /* Raise error on expressions and declarations with an implied 'any' type. */,
@@ -42,7 +42,7 @@
42
42
  // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
43
43
  // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
44
44
  // "typeRoots": [], /* List of folders to include type definitions from. */
45
- // "types": ["types/*.d.ts"] /* Type declaration files to be included in compilation. */,
45
+ "types": ["bun", "node"] /* Type declaration files to be included in compilation. */,
46
46
  "skipLibCheck": true,
47
47
  // "importHelpers": true, /* Import emit helpers from 'tslib'. */
48
48
  // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
@@ -56,5 +56,5 @@
56
56
  "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
57
57
  },
58
58
  "exclude": ["node_modules"],
59
- "include": ["src/**/*.ts*", "src/*.ts", "src/**/*.js", "types.d.ts"]
59
+ "include": ["src/**/*.ts*", "src/*.ts", "src/**/*.js"]
60
60
  }
File without changes