@types/relay-runtime
Advanced tools
Comparing version 18.1.1 to 18.2.0
@@ -994,26 +994,65 @@ import { MutationParameters } from "../mutations/commitMutation"; | ||
export type RelayFieldLoggerEvent = | ||
| Readonly<{ | ||
kind: "missing_field.log"; | ||
owner: string; | ||
fieldPath: string; | ||
}> | ||
| Readonly<{ | ||
kind: "missing_field.throw"; | ||
owner: string; | ||
fieldPath: string; | ||
}> | ||
| Readonly<{ | ||
kind: "relay_resolver.error"; | ||
owner: string; | ||
fieldPath: string; | ||
error: Error; | ||
}> | ||
| Readonly<{ | ||
kind: "relay_field_payload.error"; | ||
owner: string; | ||
fieldPath: string; | ||
error: Error; | ||
type TRelayFieldErrorForDisplay = Readonly<{ | ||
path?: Readonly<string[] | number[]>; | ||
severity?: "CRITICAL" | "ERROR" | "WARNING"; | ||
}>; | ||
export type TRelayFieldError = | ||
& TRelayFieldErrorForDisplay | ||
& Readonly<{ | ||
message: string; | ||
}>; | ||
type MissingExpectedDataLogEvent = Readonly<{ | ||
kind: "missing_expected_data.log"; | ||
owner: string; | ||
fieldPath: string; | ||
}>; | ||
type MissingExpectedDataThrowEvent = Readonly<{ | ||
kind: "missing_expected_data.throw"; | ||
owner: string; | ||
fieldPath: string; | ||
handled: boolean; | ||
}>; | ||
type MissingRequiredFieldLogEvent = Readonly<{ | ||
kind: "missing_required_field.log"; | ||
owner: string; | ||
fieldPath: string; | ||
}>; | ||
type MissingRequiredFieldThrowEvent = Readonly<{ | ||
kind: "missing_required_field.throw"; | ||
owner: string; | ||
fieldPath: string; | ||
handled: boolean; | ||
}>; | ||
type RelayResolverErrorEvent = Readonly<{ | ||
kind: "relay_resolver.error"; | ||
owner: string; | ||
fieldPath: string; | ||
error: Error; | ||
shouldThrow: boolean; | ||
handled: boolean; | ||
}>; | ||
type RelayFieldPayloadErrorEvent = Readonly<{ | ||
kind: "relay_field_payload.error"; | ||
owner: string; | ||
fieldPath: string; | ||
error: TRelayFieldError; | ||
shouldThrow: boolean; | ||
handled: boolean; | ||
}>; | ||
export type RelayFieldLoggerEvent = | ||
| MissingExpectedDataLogEvent | ||
| MissingExpectedDataThrowEvent | ||
| MissingRequiredFieldLogEvent | ||
| MissingRequiredFieldThrowEvent | ||
| RelayResolverErrorEvent | ||
| RelayFieldPayloadErrorEvent; | ||
/** | ||
@@ -1020,0 +1059,0 @@ * A handler for events related to `@required` fields. Currently reports missing |
{ | ||
"name": "@types/relay-runtime", | ||
"version": "18.1.1", | ||
"version": "18.2.0", | ||
"description": "TypeScript definitions for relay-runtime", | ||
@@ -39,4 +39,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/relay-runtime", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "b1813d9907f4aca8ef0340fec7df1a230fe4530506f199dbd4f3182a27b93dd0", | ||
"typeScriptVersion": "4.8" | ||
"typesPublisherContentHash": "7a1262cb33964e21b9d3d457950447c158ed599facbd9a2c83bef88b6620e297", | ||
"typeScriptVersion": "5.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 31 Oct 2024 16:37:34 GMT | ||
* Last updated: Mon, 02 Dec 2024 15:02:40 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
146703
3643