-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript idempotency initial dev branch #1
Typescript idempotency initial dev branch #1
Conversation
import { PersistenceLayerInterface } from './PersistenceLayerInterface'; | ||
|
||
abstract class PersistenceLayer implements PersistenceLayerInterface { | ||
public configure(_config: IdempotencyConfig): void {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been distracted so I may have missed the reasoning, but why isn't this the constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We followed what the Python version had, the persistence layer does have its own constructor defined that saves other things on the constructor. I don't have the constructor here currently because many of those objects are related to config that is outside the scope of what we plan to deliver for the first set of functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { AnyFunction } from 'types/AnyFunction'; | ||
import { IdempotencyOptions } from './IdempotencyOptions'; | ||
|
||
const makeFunctionIdempotent = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this a type as well that way we can pass the generic from here down. So we makeFunctionIdempotent<U>
and the function would return that Type? Or am I missing something? Otherwise isnt the generic not propagated?
…ithub.com/jeffrey-baker-vg/aws-lambda-powertools-typescript into typescript-idempotency-initial-dev-branch
Description of your changes
How to verify this change
Related issues, RFCs
Issue number:
PR status
Is this ready for review?: NO
Is it a breaking change?: NO
Checklist
Breaking change checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.