René's URL Explorer Experiment


Title: Query.where() does not accept boolean as per latest types definitions · Issue #43 · contentstack/contentstack-javascript · GitHub

Open Graph Title: Query.where() does not accept boolean as per latest types definitions · Issue #43 · contentstack/contentstack-javascript

X Title: Query.where() does not accept boolean as per latest types definitions · Issue #43 · contentstack/contentstack-javascript

Description: I have upgraded to 3.12.1 and the following Typescript code wouldn't compile: stack.ContentType('my_content').Query().where('is_hidden', false), This is due to this type definition: where(key: string, value: (string | number)): Query; Th...

Open Graph Description: I have upgraded to 3.12.1 and the following Typescript code wouldn't compile: stack.ContentType('my_content').Query().where('is_hidden', false), This is due to this type definition: where(key: stri...

X Description: I have upgraded to 3.12.1 and the following Typescript code wouldn't compile: stack.ContentType('my_content').Query().where('is_hidden', false), This is due to this type definit...

Opengraph URL: https://github.com/contentstack/contentstack-javascript/issues/43

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Query.where() does not accept boolean as per latest types definitions","articleBody":"I have upgraded to 3.12.1 and the following Typescript code wouldn't compile:\r\n\r\n```\r\nstack.ContentType('my_content').Query().where('is_hidden', false),\r\n```\r\n\r\nThis is due to this type definition:\r\n\r\n```\r\nwhere(key: string, value: (string | number)): Query;\r\n```\r\n\r\nThe type definitions that I am looking at are:\r\n```\r\n// Type definitions for contentstack 3.12.0\r\n// Project: https://www.contentstack.com/\r\n// Definitions by: Contentstack \u003chttps://github.com/contentstack\u003e\r\n```\r\n\r\nThe implementation in SDK doesn't really care and will be fine with `any`:\r\nhttps://github.com/contentstack/contentstack-javascript/blob/master/src/core/modules/query.js#L419\r\n\r\nI have to do this to \"trick\" Typescript compiler to believe my code\r\n\r\n```\r\ndeclare module 'contentstack' {\r\n  interface Query {\r\n    where(key: string, value: string | number | boolean): Query;\r\n  }\r\n}\r\n```","author":{"url":"https://github.com/pveller","@type":"Person","name":"pveller"},"datePublished":"2021-01-29T15:45:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/43/contentstack-javascript/issues/43"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ac09916-7f0c-f767-c478-62868f8f3e8e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB904:E65DA:20EFEAE:2C40AB6:6981C128
html-safe-nonce8b53fdcb9ea93cd0f026986a3e18e57a1fb5868f82a1bb2557f8ab9a694fa605
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTA0OkU2NURBOjIwRUZFQUU6MkM0MEFCNjo2OTgxQzEyOCIsInZpc2l0b3JfaWQiOiIyNjMxNzAzMzk1MjA3MDY5OTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac19e706bad3f008b2b4fefb86497da68257d8f78d380bc177633a78e573396109
hovercard-subject-tagissue:796984776
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/contentstack/contentstack-javascript/43/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4fe470b5a8e61990c87790140432712677927b479c4d6c98f8d673cfe92a23c2/contentstack/contentstack-javascript/issues/43
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4fe470b5a8e61990c87790140432712677927b479c4d6c98f8d673cfe92a23c2/contentstack/contentstack-javascript/issues/43
og:image:altI have upgraded to 3.12.1 and the following Typescript code wouldn't compile: stack.ContentType('my_content').Query().where('is_hidden', false), This is due to this type definition: where(key: stri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepveller
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
go-importgithub.com/contentstack/contentstack-javascript git https://github.com/contentstack/contentstack-javascript.git
octolytics-dimension-user_id24450751
octolytics-dimension-user_logincontentstack
octolytics-dimension-repository_id76627300
octolytics-dimension-repository_nwocontentstack/contentstack-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id76627300
octolytics-dimension-repository_network_root_nwocontentstack/contentstack-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6be0b67eaa5007447f7efac54feabf8efa3e0840
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/contentstack/contentstack-javascript/issues/43#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcontentstack%2Fcontentstack-javascript%2Fissues%2F43
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcontentstack%2Fcontentstack-javascript%2Fissues%2F43
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=contentstack%2Fcontentstack-javascript
Reloadhttps://github.com/contentstack/contentstack-javascript/issues/43
Reloadhttps://github.com/contentstack/contentstack-javascript/issues/43
Reloadhttps://github.com/contentstack/contentstack-javascript/issues/43
contentstack https://github.com/contentstack
contentstack-javascripthttps://github.com/contentstack/contentstack-javascript
Notifications https://github.com/login?return_to=%2Fcontentstack%2Fcontentstack-javascript
Fork 24 https://github.com/login?return_to=%2Fcontentstack%2Fcontentstack-javascript
Star 33 https://github.com/login?return_to=%2Fcontentstack%2Fcontentstack-javascript
Code https://github.com/contentstack/contentstack-javascript
Issues 1 https://github.com/contentstack/contentstack-javascript/issues
Pull requests 3 https://github.com/contentstack/contentstack-javascript/pulls
Actions https://github.com/contentstack/contentstack-javascript/actions
Projects 0 https://github.com/contentstack/contentstack-javascript/projects
Security 0 https://github.com/contentstack/contentstack-javascript/security
Insights https://github.com/contentstack/contentstack-javascript/pulse
Code https://github.com/contentstack/contentstack-javascript
Issues https://github.com/contentstack/contentstack-javascript/issues
Pull requests https://github.com/contentstack/contentstack-javascript/pulls
Actions https://github.com/contentstack/contentstack-javascript/actions
Projects https://github.com/contentstack/contentstack-javascript/projects
Security https://github.com/contentstack/contentstack-javascript/security
Insights https://github.com/contentstack/contentstack-javascript/pulse
New issuehttps://github.com/login?return_to=https://github.com/contentstack/contentstack-javascript/issues/43
New issuehttps://github.com/login?return_to=https://github.com/contentstack/contentstack-javascript/issues/43
Query.where() does not accept boolean as per latest types definitionshttps://github.com/contentstack/contentstack-javascript/issues/43#top
https://github.com/pveller
https://github.com/pveller
pvellerhttps://github.com/pveller
on Jan 29, 2021https://github.com/contentstack/contentstack-javascript/issues/43#issue-796984776
https://github.com/contentstack/contentstack-javascript/blob/master/src/core/modules/query.js#L419https://github.com/contentstack/contentstack-javascript/blob/master/src/core/modules/query.js#L419
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.