mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Use serde to serialize responses (#96)
This commit is contained in:
committed by
Keavon Chambers
parent
f10a3c63d1
commit
f8ebff033d
@@ -23,7 +23,8 @@ export function registerResponseHandler(responseType: ResponseType, callback: Re
|
||||
window.responseMap[responseType] = callback;
|
||||
}
|
||||
|
||||
export function handleResponse(responseType: ResponseType, responseData: string) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function handleResponse(responseType: ResponseType, responseData: any) {
|
||||
const callback = window.responseMap[responseType];
|
||||
|
||||
if (callback) {
|
||||
|
||||
Reference in New Issue
Block a user