mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-09-13 00:16:17 +00:00
Additional WASM translation layer cleanup
This commit is contained in:
parent
12585c5084
commit
8b012f9831
5 changed files with 34 additions and 74 deletions
|
@ -36,7 +36,6 @@ export function registerResponseHandler(responseType: ResponseType, callback: Re
|
|||
state.responseMap[responseType] = callback;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function handleResponse(responseType: string, responseData: any) {
|
||||
const callback = state.responseMap[responseType];
|
||||
const data = parseResponse(responseType, responseData);
|
||||
|
@ -50,7 +49,6 @@ export function handleResponse(responseType: string, responseData: any) {
|
|||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function parseResponse(responseType: string, data: any): Response {
|
||||
switch (responseType) {
|
||||
case "DocumentChanged":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue