Skip to content

Conversation

@jeremydaly
Copy link
Collaborator

No description provided.

@jeremydaly jeremydaly merged commit 1759d1b into master Dec 12, 2020
@jeremydaly jeremydaly deleted the v0.3 branch December 12, 2020 22:59
Copy link
Contributor

@darbio darbio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for all of your hard work. Added a few comments - mainly just so I can understand how the lib works than changes that need to be made. Awesome effort!

const conditonError = (op) =>
error(`You can only supply one sortKey condition per query. Already using '${op}'`)
import { error, conditonError } from '../lib/utils'
import { Document } from 'aws-sdk/clients/textract'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWS SDK is not a dependency in your package.json (it's a dev dependency).

Do you want it to be a dependency seeing as you reference it here?

"aws-sdk": "^2.713.0",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.2",
"aws-sdk": "^2.763.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in dependencies? Not dev dependencies.

// Merge and return parsed attribute
return Object.assign(acc,parseAttributeConfig(field ,{ type: attrs[field] } as TableAttributeConfig))
} else {
// TODO: Is there a better way to do this without casting this value?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do an else if and make the comparator instanceof this would be "better" (though it doesn't really matter to the built fist)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants