We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Need to reproduce as a first step!
But, as reported in a feedback session by a community developer, with the following datastore:
export const OldestCodeReviewDatastore = DefineDatastore({ name: 'code_review_datastore', attributes: { id: { type: Schema.types.string }, timestamp: { type: Schema.types.string } }, primary_key: 'id' })
This code apparently returns an any type.
any
async function getOldestReview(client: SlackAPIClient, channel: string) { const oldestReview = await client.apps.datastore.get<typeof OldestCodeReviewDatastore.definition>({ datastore: 'code_review_datastore', id: 'oldest_review_' + channel }) if (!oldestReview.ok) { console.log('Error during request apps.datastore.get!', oldestReview) return '0' } return oldestReview?.item?.timestamp ?? '0' }
The text was updated successfully, but these errors were encountered:
This does seems correct our typeahead for datastores is not as capable as the one found for input parameters in functions
datastores
Where with input functions we properly predict the type
type
Sorry, something went wrong.
filmaj
No branches or pull requests
Need to reproduce as a first step!
But, as reported in a feedback session by a community developer, with the following datastore:
This code apparently returns an
any
type.The text was updated successfully, but these errors were encountered: