New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/relay-runtime

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/relay-runtime - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

37

relay-runtime/index.d.ts

@@ -6,3 +6,3 @@ // Type definitions for relay-runtime 1.3

// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
// TypeScript Version: 2.9

@@ -55,2 +55,11 @@ // Prettified with:

export interface OperationBase {
variables: object;
response: object;
}
export interface OperationDefaults {
variables: Variables;
response: Variables;
}
// ~~~~~~~~~~~~~~~~~~~~~

@@ -145,7 +154,7 @@ // RelayQL

*/
export type SelectorStoreUpdater = (
export type SelectorStoreUpdater<T = any> = (
store: RecordSourceSelectorProxy,
// Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is
// inconvenient to access deeply in product code.
data: any // FLOW FIXME
data: T
) => void;

@@ -489,3 +498,5 @@

props: Props
): { [key: string]: CSelector<TNode> | Array<CSelector<TNode>> | null | undefined };
): {
[key: string]: CSelector<TNode> | Array<CSelector<TNode>> | null | undefined;
};

@@ -1012,14 +1023,18 @@ /**

// exposed through RelayModern, not Runtime directly
export interface MutationConfig<T> {
export interface MutationConfig<T extends OperationBase> {
configs?: RelayMutationConfig[];
mutation: GraphQLTaggedNode;
variables: Variables;
variables: T["variables"];
uploadables?: UploadableMap;
onCompleted?(response: T, errors: PayloadError[] | null | undefined): void;
onCompleted?(response: T["response"], errors: PayloadError[] | null | undefined): void;
onError?(error?: Error): void;
optimisticUpdater?: SelectorStoreUpdater;
optimisticResponse?: object;
updater?: SelectorStoreUpdater;
optimisticUpdater?: SelectorStoreUpdater<T["response"]>;
optimisticResponse?: T["response"];
updater?: SelectorStoreUpdater<T["response"]>;
}
export function commitRelayModernMutation(environment: Environment, config: MutationConfig<any>): Disposable;
export function commitRelayModernMutation<T extends OperationBase = OperationDefaults>(
environment: Environment,
// tslint:disable-next-line:no-unnecessary-generics
config: MutationConfig<T>
): Disposable;

@@ -1026,0 +1041,0 @@ // ~~~~~~~~~~~~~~~~~~~~~

{
"name": "@types/relay-runtime",
"version": "1.3.4",
"version": "1.3.5",
"description": "TypeScript definitions for relay-runtime",

@@ -25,4 +25,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "bf88387fcbbd088192670b2dbfe460e386c564148f049cf0d4514f9baef022b1",
"typeScriptVersion": "2.4"
"typesPublisherContentHash": "a80ecc825940dea2dc875a35f282f0394e9ed458d7959cee8219e821999fd9a5",
"typeScriptVersion": "2.9"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 14 Aug 2018 00:52:13 GMT
* Last updated: Sun, 26 Aug 2018 19:04:58 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc