@knapsack/app
Version:
Build Design Systems on top of knapsack, by Basalt
21 lines • 563 B
TypeScript
export declare const WS_EVENTS: {
[x: string]: string;
};
export declare type WebSocketEvent = keyof typeof WS_EVENTS;
export interface PatternChangedData {
/**
* Absolute path to template on server that was just edited
*/
path: string;
}
export interface AssetChangedData {
/**
* Absolute path to asset file (CSS/JS) on server that was just edited
*/
path: string;
}
export interface WebSocketMessage {
event: WebSocketEvent;
data: PatternChangedData | AssetChangedData;
}
//# sourceMappingURL=web-sockets.d.ts.map