You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll close this one as it's not related to public types but only our internal code. While having correct types everywhere would be nice fixing the internal ones is not our top priority as it normally yields small benefits compared to other things we (and contributors) can work on. If you find them while browsing the code, feel free to open a PR, but I wouldn't recommend hunting for them. Thanks!
Preliminary Checks
Description
example field typed incorrectly
Should be
export interface ITypeInfoDate extends ITypeInfo {
example: string | Date
}
getType will return date for a node field value that is a Date or is a string that looksLikeADate
and for date types the example value is the node field value - a string or a Date
Reproduction Link
gatsby/packages/gatsby/src/schema/infer/inference-metadata.ts
Line 78 in a8745ea
Steps to Reproduce
...
Expected Result
typescript is correct
Actual Result
typescript is incorrect
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: