Refactor types

This commit is contained in:
Akim Mamedov
2024-03-04 18:56:50 +07:00
parent 6755f57b06
commit f7940618a1
4 changed files with 10 additions and 38 deletions

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import { JSONValue, ServiceDef } from "@fluencelabs/interfaces";
import { ServiceDef } from "@fluencelabs/interfaces";
import { recursiveRenameLaquaProps } from "../utils.js";
@ -63,6 +63,6 @@ function generateRegisterServiceOverload(
}
function serviceToJson(service: ServiceDef): string {
const record: Record<never, JSONValue> = service;
const record: Record<never, unknown> = service;
return JSON.stringify(recursiveRenameLaquaProps(record), null, 4);
}