usimple-saleor-sdk
Version:
This package contains all queries and mutations that are used in our sample storefront. It can be used for semi-custom or fully-custom (with ability to extend existing queries) storefront solutions.
7 lines (6 loc) • 323 B
TypeScript
export interface INamedObservable<T> {
subscribeToChange: (name: T, func: (data: any) => any) => void;
unsubscribeToChange: (name: T, func: (data: any) => any) => void;
subscribeToNotifiedChanges: (func: (data: any) => any) => void;
unsubscribeToNotifiedChanges: (func: (data: any) => any) => void;
}