Skip to content

TypeScript - What is the correct way to type custom model methods & item methods? #1646

Answered by fishcharlie
tranhl asked this question in Q&A
Discussion options

You must be logged in to vote

@tranhl I don't think this case is supported currently. You either have to type cast it to any or use ts-ignore. Dynamoose TypeScript support is currently in beta: https://dynamoosejs.com/getting_started/TypeScript.

PRs would be appreciated here. Or an issue documenting this feature request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tranhl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants