Skip to content

Commit

Permalink
FIX: ESM modules with TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Feb 6, 2024
1 parent f18c30b commit b77df61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Expression.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {OneParams, OneProperties, OneIndex} from './Model'
import {OneParams, OneProperties, OneIndex} from './Model.js'
export class Expression<ModelT> {
constructor(model: ModelT, op: string, properties: OneProperties, params?: OneParams)
add(field: string, value: any): void
Expand Down
2 changes: 1 addition & 1 deletion src/Model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Supports dynamic definition of types based on the Schema.js
*/
import {Expression} from './Expression'
import {Expression} from './Expression.js'

/*
Possible types for a schema field "type" property
Expand Down
4 changes: 2 additions & 2 deletions src/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
OneSchema,
Paged,
Entity,
} from './Model'
import {Metrics} from './Metrics'
} from './Model.js'
import {Metrics} from './Metrics.js'
import {DynamoDBRecord} from 'aws-lambda'

export type EntityGroup = {
Expand Down
8 changes: 4 additions & 4 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import {
OneSchema,
OneType,
Paged,
} from './Model'
} from './Model.js'

import {Table} from './Table'
import {Expression} from './Expression'
import {OneTableError, OneTableArgError} from './Error'
import {Table} from './Table.js'
import {Expression} from './Expression.js'
import {OneTableError, OneTableArgError} from './Error.js'

import {UID, ULID, UUID} from './UID.js'

Expand Down

0 comments on commit b77df61

Please sign in to comment.