UNPKG

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.

12 lines (11 loc) 537 B
import { INamedObservable } from "./types"; export declare class NamedObservable<T> implements INamedObservable<T> { private observers; private notifiedObservers; constructor(); 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; protected notifyChange: (name: T, data: any) => void; }