From 38c44445eceadbf93146d3329ad96764627bcb76 Mon Sep 17 00:00:00 2001 From: Evan Welsh Date: Tue, 5 Mar 2024 23:22:54 -0800 Subject: [PATCH] Fix imports --- packages/lib/src/gir-module.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/lib/src/gir-module.ts b/packages/lib/src/gir-module.ts index 7dddd8ff2..9061d2582 100644 --- a/packages/lib/src/gir-module.ts +++ b/packages/lib/src/gir-module.ts @@ -27,8 +27,6 @@ import type { ParsedGir, GirInfoAttrs, GenerateConfig, - IntrospectedFunctionParameter, - IntrospectedClassFunction, PromisifyFunc, } from './types/index.js' import { @@ -52,6 +50,8 @@ import { IntrospectedFunction, IntrospectedCallback, IntrospectedClassCallback, + IntrospectedFunctionParameter, + IntrospectedClassFunction, } from './gir/function.js' import { NSRegistry } from './gir/registry.js' import { isPrimitiveType } from './gir/util.js' @@ -319,7 +319,7 @@ export class GirModule { } } } - + overloadPromisifiedFunctions(girFunctions: GirFunctionElement[]): void { if (!this.config.promisify) return @@ -632,10 +632,9 @@ export class GirModule { (m): m is IntrospectedBaseClass => m instanceof IntrospectedBaseClass, ) const res = clazzes - .map<[IntrospectedBaseClass, IntrospectedClassCallback | undefined]>((m) => [ - m, - m.callbacks.find((c) => c.name === name || c.resolve_names.includes(name)), - ]) + .map< + [IntrospectedBaseClass, IntrospectedClassCallback | undefined] + >((m) => [m, m.callbacks.find((c) => c.name === name || c.resolve_names.includes(name))]) .find((r): r is [IntrospectedBaseClass, IntrospectedClassCallback] => r[1] != null) if (res) {